> +   @Override
> +   public ListenableFuture<Image> createImage(ImageTemplate template) {
> +      checkState(template instanceof CloneImageTemplate, "profitbricks only 
> supports creating images through cloning.");
> +      final CloneImageTemplate cloneTemplate = (CloneImageTemplate) template;
> +      String serverId = cloneTemplate.getSourceNodeId();
> +
> +      Server server = api.serverApi().getServer(serverId);
> +      Storage bootDevice = Iterables.find(server.storages(), 
> matchBootDevice);
> +
> +      final Snapshot requested = api.snapshotApi().createSnapshot(
> +              Snapshot.Request.creatingBuilder()
> +              .storageId(bootDevice.id())
> +              .name(template.getName())
> +              .description(template.getName() + " (created with jclouds)")
> +              .build());
> +

Since this is something that takes time, add a log message here saying that the 
image is being created.

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

Reply via email to