1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-04 17:47:00 +03:00

bug #4236: Deal with poweroff vms

This commit is contained in:
Ruben S. Montero 2016-06-03 20:04:28 +02:00
parent 57976f61c2
commit dfd3cc8f67

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")