mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-29 18:50:08 +03:00
B #-: Take only X.Y ansible version (#2865)
To avoid minor diff conflicts (cherry picked from commit 4cf60b07b4e3b9100b7fbd0197ff69460df41612)
This commit is contained in:
parent
16b5d98caa
commit
c38ce5e8f5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user