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

(cherry picked from commit 695225a2d7)
This commit is contained in:
Alejandro Huertas Herrero authored and Ruben S. Montero committed 2020-10-23 12:47:13 +02:00
1 parent 17fa451746
commit 8be3f75ade
1 file changed
+1
+1
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