> +import org.jclouds.azureblob.domain.ContainerProperties;
> +import org.jclouds.azureblob.domain.ListBlobsResponse;
> +import org.jclouds.azurecompute.arm.domain.VMImage;
> +
> +import java.io.IOException;
> +import java.util.ArrayList;
> +import java.util.List;
> +
> +public class BlobHelper {
> +
> + public static void deleteContainerIfExists(String storage, String key,
> String containerName) {
> + final AzureBlobClient azureBlob =
> ContextBuilder.newBuilder("azureblob")
> + .credentials(storage, key)
> + .buildApi(AzureBlobClient.class);
> +
> + azureBlob.deleteContainer(containerName);
This should be wrapped in the try/finally block to always 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#r73308710