update script

This commit is contained in:
John Bowdre 2022-06-16 13:35:01 -05:00
parent 3f4d0f60ca
commit 8ebacd39c5

View file

@ -9,6 +9,7 @@ var vm = VcPlugin.getAllVirtualMachines(null, vmName)[0];
var originalState = vm.state; var originalState = vm.state;
if (originalState === "poweredOn") { if (originalState === "poweredOn") {
System.log("VM is running running. Stopping VM...") System.log("VM is running running. Stopping VM...")
// Create sleep() function
function sleep(milliseconds) { function sleep(milliseconds) {
var timeStart = new Date().getTime(); var timeStart = new Date().getTime();
while (true) { while (true) {