1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-25 02:50:08 +03:00

F #5890: adjust iptables version command (#2219)

(cherry picked from commit d201ecf816b3570ad3ee0fc3321670cd2d3e5ce2)
This commit is contained in:
Christian González 2022-07-05 11:23:12 +02:00 committed by Ruben S. Montero
parent 4edc926882
commit c236e94819
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -39,7 +39,7 @@ module VNMMAD
}
# Adjust :ip[6]tables commands to work with legacy version
stdout = Open3.capture3('iptables --version')[0]
stdout = Open3.capture3('sudo iptables --version')[0]
regex = /.*v(?<version>\d+.\d+.\d+)/
iptables_version = Gem::Version.new(stdout.match(regex)[:version])