> +               public Object get() {
> +                  return api.storageApi().createStorage(request);
> +               }
> +            }));
> +
> +            storageIds.add(storageId);
> +            logger.trace(">> provisioning complete for storage. returned 
> id='%s'", storageId);
> +         } catch (Exception ex) {
> +            if (i - 1 == 1) // if first storage (one with image) 
> provisioning fails; stop method
> +               throw Throwables.propagate(ex);
> +            logger.warn(ex, ">> failed to provision storage. skipping..");
> +         }
> +
> +      Double cores = 0d;
> +      for (Processor processor : hardware.getProcessors())
> +         cores += processor.getCores();

[minor] Use the 
[ComputeServiceUtils](https://github.com/jclouds/jclouds/blob/master/compute/src/main/java/org/jclouds/compute/util/ComputeServiceUtils.java#L116-L121)
 instead.

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

Reply via email to