1
0
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:
Jan Orel 2023-09-19 17:36:41 +02:00 committed by GitHub
parent 02359fbfc9
commit 335f4cee6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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