> +      try {
> +         droplet = api.getDropletApi().get(Integer.valueOf(id));
> +      } catch (Exception ex) {
> +         throw new NoSuchElementException("Cannot find droplet with id: " + 
> id);
> +      }
> +
> +      if (droplet == null) {
> +         throw new NoSuchElementException("Cannot find droplet with id: " + 
> id);
> +      }
> +
> +      return new 
> ImageTemplateBuilder.CloneImageTemplateBuilder().nodeId(id).name(name).build();
> +   }
> +
> +   @Override
> +   public ListenableFuture<Image> createImage(ImageTemplate template) {
> +      checkState(template instanceof CloneImageTemplate, " digitalocean only 
> supports creating images through cloning.");

[minor] Space in `" digi...`?

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

Reply via email to