mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Fix bug with HISTORY record
This commit is contained in:
parent
5bea16ccc4
commit
6b69f4da4c
@ -45,7 +45,7 @@ begin
|
||||
one_client = OpenNebula::Client.new
|
||||
vm = OpenNebula::VirtualMachine.new_with_id(vmid, one_client)
|
||||
vm.info
|
||||
src_ds = vm.to_hash["VM"]["HISTORY_RECORDS"]["HISTORY"].last["DS_ID"]
|
||||
src_ds = vm.to_hash["VM"]["HISTORY_RECORDS"]["HISTORY"][-2]["DS_ID"]
|
||||
|
||||
if src_ds == dsid
|
||||
VCenterDriver::VirtualMachine.migrate_routine(vmid, host_orig, host_dest)
|
||||
|
Loading…
x
Reference in New Issue
Block a user