mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-27 10:50:10 +03:00
parent
221204c0ce
commit
472893e254
@ -259,7 +259,13 @@ class Cluster
|
||||
vms = {}
|
||||
vms_hash.each do |vm_ref, info|
|
||||
one_id = -1
|
||||
ids = vmpool.retrieve_xmlelements("/VM_POOL/VM[DEPLOY_ID = '#{vm_ref}']")
|
||||
|
||||
# Add OR to retrieve VMs that are using old deploy ID
|
||||
ids = vmpool.retrieve_xmlelements(
|
||||
"/VM_POOL/VM[(DEPLOY_ID = '#{vm_ref}')" \
|
||||
' or ' \
|
||||
"(DEPLOY_ID = '#{vm_ref.split('_')[0]}')]"
|
||||
)
|
||||
|
||||
ids.select do |vm|
|
||||
hid = vm['HISTORY_RECORDS/HISTORY/HID']
|
||||
|
Loading…
x
Reference in New Issue
Block a user