bug #4236: Deal with poweroff vms

This commit is contained in:
Ruben S. Montero committed 2016-06-03 20:04:28 +02:00
1 parent 57976f61c2
commit dfd3cc8f67
1 file changed
+1 -1
+1 -1
View File
@@ -124,7 +124,7 @@ exit -1 if OpenNebula.is_error?(rc)
state = "STATE=3"
state += " or STATE=5" if force == "y"
state += " or STATE=5 or STATE=8" if force == "y"
vm_ids_array = vms.retrieve_elements("/VM_POOL/VM[#{state}]/HISTORY_RECORDS/HISTORY[HOSTNAME=\"#{host_name}\" and last()]/../../ID")