mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-24 21:34:01 +03:00
M #-: fix minor bug in Google provider (#1678)
This commit is contained in:
parent
411b9484c9
commit
7c74c031ab
@ -66,7 +66,11 @@ module OneProvision
|
||||
|
||||
# Checks ansible installed version
|
||||
def check_ansible_version
|
||||
version = Gem::Version.new(`ansible --version`.split[1])
|
||||
# Get just first line with Ansible version
|
||||
version = `ansible --version`.split("\n")[0]
|
||||
|
||||
version = version.match(/\d+[.]\d+[.]\d+/)
|
||||
version = Gem::Version.new(version)
|
||||
|
||||
if (version < ANSIBLE_VERSION[0]) ||
|
||||
(version >= ANSIBLE_VERSION[1])
|
||||
|
@ -20,4 +20,6 @@ resource "google_compute_firewall" "device_<%= obj['ID'] %>" {
|
||||
protocol = "udp"
|
||||
ports = ["8472"]
|
||||
}
|
||||
|
||||
source_ranges = ["0.0.0.0/0"]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user