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

M #-: Allow == to max_ansibe (due to need of 2.13) (#2848)

This commit is contained in:
Jan Orel 2023-11-29 15:46:15 +01:00 committed by GitHub
parent 989a2526df
commit 6bed50b7d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,9 +76,9 @@ module OneProvision
version = version.match(/\d+[.]\d+[.]\d+/)
version = Gem::Version.new(version)
if (version < ANSIBLE_VERSION[0]) || (version >= ANSIBLE_VERSION[1])
if (version < ANSIBLE_VERSION[0]) || (version > ANSIBLE_VERSION[1])
Utils.fail("Unsupported Ansible version #{version}, " \
"must be >= #{ANSIBLE_VERSION[0]} and < #{ANSIBLE_VERSION[1]}")
"must be >= #{ANSIBLE_VERSION[0]} and <= #{ANSIBLE_VERSION[1]}")
end
return if provision.nil? || !provision.hci?