1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-11 05:17:41 +03:00

fix vcenter deploy, already poweredOn machine

This commit is contained in:
sergio semedi 2018-10-31 14:49:50 +01:00 committed by Ruben S. Montero
parent f59bdbfc01
commit 4e5ac9f761

View File

@ -59,10 +59,12 @@ begin
vm_id)
end
vm.nresize_unmanaged_disks
vm.sync
vm.poweron
vm.set_running(true)
if vm.is_powered_off?
vm.nresize_unmanaged_disks
vm.sync
vm.poweron
vm.set_running(true)
end
puts vm['_ref']
rescue StandardError => e