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