1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-22 13:33:52 +03:00

B #-: Take only X.Y ansible version (#2865)

To avoid minor diff conflicts
This commit is contained in:
Jan Orel 2023-12-10 11:53:57 +01:00 committed by GitHub
parent 800bfbba0f
commit 4cf60b07b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,7 @@ module OneProvision
# Get just first line with Ansible version
version = `ansible --version`.split("\n")[0]
version = version.match(/\d+[.]\d+[.]\d+/)
version = version.match(/\d+[.]\d+/)
version = Gem::Version.new(version)
ansible_min, ansible_max = provision.ansible_ver