mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-30 22:50:10 +03:00
M #-: fix minor bug in vCenter attach nic (#1922)
This commit is contained in:
parent
3e098a53fd
commit
07c752c353
@ -1860,7 +1860,7 @@ end
|
||||
begin
|
||||
@item.ReconfigVM_Task(:spec => spec).wait_for_completion
|
||||
rescue StandardError => e
|
||||
error = "Cannot create snapshot for VM: #{e.message}."
|
||||
error = "Cannot generate VM context info: #{e.message}."
|
||||
|
||||
if VCenterDriver::CONFIG[:debug_information]
|
||||
error += "\n\n#{e.backtrace}"
|
||||
|
@ -64,7 +64,10 @@ begin
|
||||
|
||||
one_item_xml = drv_action.retrieve_xmlelements('VM').first.to_xml
|
||||
one_item_raw_xml = OpenNebula::XMLElement.build_xml(one_item_xml, 'VM')
|
||||
one_item = OpenNebula::VirtualMachine.new(one_item_raw_xml, vi_client)
|
||||
one_item = OpenNebula::VirtualMachine.new(
|
||||
one_item_raw_xml,
|
||||
OpenNebula::Client.new
|
||||
)
|
||||
|
||||
vm = VCenterDriver::VirtualMachine.new_one(vi_client, vm_ref, one_item)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user