mirror of
https://github.com/OpenNebula/one.git
synced 2025-08-29 09:49:28 +03:00
B #-: Don't run sudo iptables locally (#2740)
This commit is contained in:
@ -40,7 +40,7 @@ module VNMMAD
|
|||||||
|
|
||||||
# Adjust :ip[6]tables commands to work with legacy versions
|
# Adjust :ip[6]tables commands to work with legacy versions
|
||||||
begin
|
begin
|
||||||
stdout = Open3.capture3('sudo iptables --version')[0]
|
stdout = Open3.capture3('iptables --version')[0]
|
||||||
regex = /.*v(?<version>\d+.\d+.\d+)/
|
regex = /.*v(?<version>\d+.\d+.\d+)/
|
||||||
|
|
||||||
iptables_version = Gem::Version.new(stdout.match(regex)[:version])
|
iptables_version = Gem::Version.new(stdout.match(regex)[:version])
|
||||||
|
Reference in New Issue
Block a user