mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
Co-authored-by: mouyaq <amoya@opennebula.io>
This commit is contained in:
parent
49e62d5d98
commit
476ac338a0
@ -469,7 +469,6 @@ class VcenterMonitor
|
||||
"VCENTER_INSTANCE_ID =\"#{@vc_uuid}\"\n"\
|
||||
"VCENTER_CCR_REF =\"#{@ccr_ref}\"\n"
|
||||
|
||||
str << "IMPORT_VM_ID =\"#{vm._ref}\"\n"
|
||||
str << "DEPLOY_ID =\"#{vm._ref}\"\n"
|
||||
@state = vm_state(vm.summary.runtime.powerState)
|
||||
str << "IMPORT_STATE =\"#{@state}\"\n"
|
||||
|
@ -699,7 +699,6 @@ class ClusterComputeResource
|
||||
vm_info << "VM = [ ID=\"#{id}\", "
|
||||
vm_info << "VM_NAME=\"#{vm_name}\", "
|
||||
vm_info << "DEPLOY_ID=\"#{vm_ref}\", "
|
||||
vm_info << "UUID=\"#{vm_ref + vc_uuid}\", "
|
||||
|
||||
# if the machine does not exist in opennebula it means that is a wild:
|
||||
unless vm.one_exist?
|
||||
@ -732,7 +731,6 @@ class ClusterComputeResource
|
||||
error_info << "VM = [ ID=\"#{id}\", "
|
||||
error_info << "VM_NAME=\"#{vm_name}\", "
|
||||
error_info << "DEPLOY_ID=\"#{vm_ref}\", "
|
||||
error_info << "UUID=\"#{vm_ref + vc_uuid}\", "
|
||||
error_info << "ERROR=\"#{Base64.encode64(tmp_str).gsub("\n", '')}\"]\n"
|
||||
end
|
||||
|
||||
|
@ -962,7 +962,7 @@ class Template
|
||||
"VCENTER_INSTANCE_ID =\"#{@vm_info[:vc_uuid]}\"\n"\
|
||||
"VCENTER_CCR_REF =\"#{@vm_info[:cluster_ref]}\"\n"
|
||||
|
||||
str << "IMPORT_VM_ID =\"#{self["_ref"]}\"\n"
|
||||
str << "DEPLOY_ID =\"#{self["_ref"]}\"\n"
|
||||
@state = 'POWEROFF' if @state == 'd'
|
||||
str << "IMPORT_STATE =\"#{@state}\"\n"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user