update script

This commit is contained in:
John Bowdre 2022-06-16 13:35:01 -05:00
parent 3f4d0f60ca
commit 8ebacd39c5
1 changed files with 1 additions and 0 deletions

View File

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