jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ignasi Barrera <notificati...@github.com>
Subject Re: [jclouds-labs] JCLOUDS-702: JClouds ProfitBricks provider - ComputeServiceAdapter (#145)
Date Tue, 03 Mar 2015 22:11:45 GMT
> +                 .size(volume.getSize())
> +                 .build());
> +         waitDcUntilAvailable.apply(dataCenterId);
> +         storageIds.add(id);
> +         logger.trace(">> provisioning complete for storage. returned id='%s'",
id);
> +      }
> +
> +      Double cores = 0d;
> +      for (Processor processor : hardware.getProcessors())
> +         cores += processor.getCores();
> +
> +      String storageBootDeviceId = Iterables.getFirst(storageIds, "");
> +      Server.Request.CreatePayload serverRequest = Server.Request.creatingBuilder()
> +              .dataCenterId(dataCenterId)
> +              .name(name)
> +              .bootFromStorageId(storageBootDeviceId)

What happens when the value is an empty string?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/145/files#r25732385
Mime
View raw message