> +
> +            long currentDiskSize = 0;
> +            int numberOfHardDrives = 0;
> +
> +            int diskKey = 0;
> +
> +            for (VirtualDevice device : 
> master.getConfig().getHardware().getDevice()) {
> +               if (device instanceof VirtualDisk) {
> +                  VirtualDisk vd = (VirtualDisk) device;
> +                  diskKey = vd.getKey();
> +                  currentDiskSize += vd.getCapacityInKB();
> +                  numberOfHardDrives++;
> +               }
> +            }
> +
> +            for (VirtualDevice device : 
> master.getConfig().getHardware().getDevice()) {

Can't the body of this loop be included in the previous one?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/61/files#r18060981

Reply via email to