> + .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