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

M #-: fix minor bug in Google provider (#1678)

This commit is contained in:
Alejandro Huertas Herrero 2022-01-03 11:31:56 +01:00 committed by Ruben S. Montero
parent ffe56ea1f9
commit 95627f1e51
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87
2 changed files with 7 additions and 1 deletions

View File

@ -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])

View File

@ -20,4 +20,6 @@ resource "google_compute_firewall" "device_<%= obj['ID'] %>" {
protocol = "udp"
ports = ["8472"]
}
source_ranges = ["0.0.0.0/0"]
}