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

M #-: Easier condition

This commit is contained in:
Ruben S. Montero 2023-12-05 11:23:01 +01:00
parent 2e27704a1d
commit a47f639ab1
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -45,7 +45,8 @@ module VNMMAD
iptables_version = Gem::Version.new(stdout.match(regex)[:version])
if Gem::Version.new('1.6.1') > iptables_version || iptables_version > Gem::Version.new('1.8.7')
if iptables_version <= Gem::Version.new('1.6.1') ||
iptables_version > Gem::Version.new('1.8.7')
COMMANDS[:iptables] = 'sudo -n iptables -w 3'
COMMANDS[:ip6tables] = 'sudo -n ip6tables -w 3'
end