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:
parent
57976f61c2
commit
dfd3cc8f67
@ -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")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user