I have an array of disks on a VM and I want to create a property set of Hard Disk Name and Hard Disk UUID. But when I print out the properties set it only prints out the last Hard Disk Information Below is my code:
for each (var vmdkInfo in vmdkDisks){
input = vmdkDisks (array of vm disks (lets say 3))
var vmdkProperties = new Properties ();
vmdkProperties.put("Hard Disk Name", vmdkInfo.deviceInfo.label);
vmdkProperties.put("VMDK UUID", vmdkInfo.backing.uuid);
}
System.log(vmdkProperties);
current output