> + azureBlob.deleteContainer(containerName);
> +
> + try {
> + azureBlob.close();
> + } catch (IOException e) {
> + e.printStackTrace();
> + }
> + }
> +
> + public static boolean customImageExists(String storage, String key) {
> + boolean retval = false;
> + final AzureBlobClient azureBlob =
> ContextBuilder.newBuilder("azureblob")
> + .credentials(storage, key)
> + .buildApi(AzureBlobClient.class);
> +
> + if (azureBlob.containerExists("system"))
Just ` return azureBlob.containerExists("system")`; also wrap it in a
try/finally block to close the context.
---
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/93cecad810be0366709b28b2dbf3259efe10dec2#r73308799