1
0
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:
Alejandro Huertas Herrero 2022-04-08 11:20:07 +02:00 committed by GitHub
parent 3e098a53fd
commit 07c752c353
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -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}"

View File

@ -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)