Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 180259

Array of Array of Virtual Machines?

$
0
0

I need to have multiple sets of virtual machine arrays but I am not quite certain how to define array of array of virtual machines.

 

At the moment I have attribute vmGroupVMs which is type of Array/Array. I have another workflow element which is contructing attiribute vms which is Array of VC:Virtual Machine.

 

Problem is that I do not know how to initialize vmGroupVMs[i] properly so that it could hold Array of VC:Virtual Machine. vmGroupVMs is used as output parameter for later use in my workflow.

 

I have following code

 

if (iterator == null) {
     var iterator = 0;
     var vmGroupVMs = new Array();
} else {
     vmGroupVMs[iterator] = new (array of) VcVirtualMachine(); ???
     vmGroupVMs[iterator] = vms;
     iterator++;
}

 

How I should initialize vmGroupVMs[iterator]?


Viewing all articles
Browse latest Browse all 180259

Trending Articles