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

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

This commit is contained in:
Christian González 2022-07-05 11:23:12 +02:00 committed by GitHub
parent 2d49985026
commit d201ecf816
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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