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

B #5143: fix minor bug when only 1 VM (#354)

(cherry picked from commit 695225a2d7e0ce191fad9145dbed50b19a433dda)
This commit is contained in:
Alejandro Huertas Herrero 2020-10-23 12:46:14 +02:00 committed by Ruben S. Montero
parent 17fa451746
commit 8be3f75ade
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -44,6 +44,7 @@ class ServiceAutoScaler
monitoring = XMLElement.new(XMLElement.build_xml(monitoring,
'MONITORING_DATA'))
monitoring = monitoring.to_hash['MONITORING_DATA']['MONITORING']
monitoring = [monitoring].flatten
vm_pool.info_all_extended