mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 13:15:14 +09:00
fix vcenter deploy, already poweredOn machine
This commit is contained in:
1 parent
f59bdbfc01
commit
4e5ac9f761
1 file changed
+6
-4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user