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:
parent
f59bdbfc01
commit
4e5ac9f761
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user