> +                    + cloneTemplate.getName());
> +         }
> +      });
> +   }
> +
> +   @Override
> +   public boolean deleteImage(String id) {
> +      Snapshot snapshot = api.snapshotApi().getSnapshot(id);
> +      if (snapshot != null)
> +         try {
> +            logger.debug(">> deleting snapshot %s..", id);
> +            return api.snapshotApi().deleteSnapshot(id);
> +         } catch (Exception ex) {
> +            logger.error(ex, ">> error deleting snapshot %s..", id);
> +         }
> +      return true;

Oh. Nice catch!

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

Reply via email to