mirror of
https://github.com/jbowdre/vRealize.git
synced 2024-11-24 02:32:19 +00:00
update script
This commit is contained in:
parent
3f4d0f60ca
commit
8ebacd39c5
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue