1
0
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:
Jan Orel
2023-09-19 17:36:41 +02:00
committed by GitHub
parent 02359fbfc9
commit 335f4cee6d

View File

@ -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])