> +         Closeables2.closeQuietly(azureBlob);
> +      }
> +   }
> +
> +   public static boolean customImageExists(String storage, String key) {
> +      final AzureBlobClient azureBlob = 
> ContextBuilder.newBuilder("azureblob")
> +              .credentials(storage, key)
> +              .buildApi(AzureBlobClient.class);
> +
> +      try {
> +         return azureBlob.containerExists("system");
> +      }
> +      catch (Exception e) {
> +         e.printStackTrace();
> +         return false;
> +      }

The container exists method should already return false [if the container 
exists call returns a 
404](https://github.com/jclouds/jclouds/blob/master/providers/azureblob/src/main/java/org/jclouds/azureblob/AzureBlobClient.java#L156).
 Worth removing the catch, as it might be caused by other errors that should be 
taken into acount?

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/305/files/cfe9f0b3aaebedf1e91a8934cab0d7f930974f63#r73664485

Reply via email to