> @@ -183,4 +186,22 @@ public boolean apply(SshClient input) {
>           }
>        }, getSpawnNodeMaxWait(), 1l, SECONDS).apply(client));
>     }
> +
> +   @AfterClass(groups = { "integration", "live" })
> +   @Override
> +   protected void tearDownContext() {
> +      view.getComputeService().destroyNodesMatching(inGroup(imageGroup));
> +
> +      Optional<? extends Image> image = getImage();
> +
> +      if (image.isPresent() && image.get().getStatus() != 
> Image.Status.DELETED) {
> +         Optional<ImageExtension> imageExtension = 
> view.getComputeService().getImageExtension();
> +         if (imageExtension.isPresent()) {
> +            imageExtension.get().deleteImage(image.get().getId());
> +         }
> +      }

Do we need a `try...catch` around this?

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

Reply via email to