mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-11 05:17:41 +03:00
B #-: Take only X.Y ansible version (#2865)
To avoid minor diff conflicts
This commit is contained in:
parent
800bfbba0f
commit
4cf60b07b4
@ -72,7 +72,7 @@ module OneProvision
|
|||||||
# Get just first line with Ansible version
|
# Get just first line with Ansible version
|
||||||
version = `ansible --version`.split("\n")[0]
|
version = `ansible --version`.split("\n")[0]
|
||||||
|
|
||||||
version = version.match(/\d+[.]\d+[.]\d+/)
|
version = version.match(/\d+[.]\d+/)
|
||||||
version = Gem::Version.new(version)
|
version = Gem::Version.new(version)
|
||||||
|
|
||||||
ansible_min, ansible_max = provision.ansible_ver
|
ansible_min, ansible_max = provision.ansible_ver
|
||||||
|
Loading…
Reference in New Issue
Block a user