fix vcenter deploy, already poweredOn machine

This commit is contained in:
sergio semedi authored and Ruben S. Montero committed 2018-10-31 14:55:43 +01:00
1 parent f59bdbfc01
commit 4e5ac9f761
1 file changed
+6 -4
+6 -4
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