jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Phillips <notificati...@github.com>
Subject Re: [jclouds-labs] CloudSigma2 ComputeService and SecurityGroupExtension (#70)
Date Sun, 21 Sep 2014 15:00:25 GMT
> +   private final CloudSigma2Api api;
> +
> +   @Inject
> +   public ServerDriveToVolume(CloudSigma2Api api) {
> +      this.api = checkNotNull(api, "api");
> +   }
> +
> +   @Override
> +   public Volume apply(ServerDrive serverDrive) {
> +      VolumeBuilder builder = new VolumeBuilder();
> +      DriveInfo driveInfo = api.getDriveInfo(serverDrive.getDriveUuid());
> +      builder.id(driveInfo.getUuid());
> +      builder.size(driveInfo.getSize().floatValue());
> +      builder.durable(true);
> +      builder.type(Volume.Type.NAS);
> +      builder.bootDevice(serverDrive.getBootOrder() > 0);

Just checking...boot order _greater_ than zero means this is a boot device?

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