mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
B #3125: Add wait_for_completion
To vCenter async Tasks that were missing it.
This commit is contained in:
parent
4f2ca57244
commit
762a0fa9e1
@ -804,13 +804,13 @@ class Datacenter
|
||||
case nr[:action]
|
||||
when :update_dpg
|
||||
begin
|
||||
nr[:dpg].ReconfigureDVPortgroup_Task(:spec => nr[:spec])
|
||||
nr[:dpg].ReconfigureDVPortgroup_Task(:spec => nr[:spec]).wait_for_completion
|
||||
rescue Exception => e
|
||||
raise "A rollback operation for distributed port group #{nr[:name]} could not be performed. Reason: #{e.message}"
|
||||
end
|
||||
when :update_dvs
|
||||
begin
|
||||
nr[:dvs].ReconfigureDvs_Task(:spec => nr[:spec])
|
||||
nr[:dvs].ReconfigureDvs_Task(:spec => nr[:spec]).wait_for_completion
|
||||
rescue Exception => e
|
||||
raise "A rollback operation for distributed standard switch #{nr[:name]} could not be performed. Reason: #{e.message}"
|
||||
end
|
||||
|
@ -371,7 +371,7 @@ class Datastore < Storage
|
||||
end
|
||||
else
|
||||
copy_params[:destinationName] = "[#{target_ds_name}] #{target_path}"
|
||||
get_fm.CopyDatastoreFile_Task(copy_params)
|
||||
get_fm.CopyDatastoreFile_Task(copy_params).wait_for_completion
|
||||
end
|
||||
|
||||
target_path
|
||||
|
Loading…
x
Reference in New Issue
Block a user