> @@ -121,4 +124,13 @@ public AWSS3AsyncBlobStore(BlobStoreContext context,
> BlobUtils blobUtils,
> blob2Object.apply(blob), options);
> }
>
> + @Override
> + public ListenableFuture<Boolean> createContainerInLocation(Location
> location, String container,
> +
> CreateContainerOptions options) {
> + if (Futures.getUnchecked(containerExists(container))) {
> + // Return false if container already exists. See JCLOUDS-334 for
> details.
> + return Futures.immediateFuture(Boolean.FALSE);
> + }
> + return super.createContainerInLocation(location, container, options);
> + }
OK, thanks for explaining. If some S3 providers "respect" the desired
behaviour, I agree that the provider-specific code is the right place for this.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/173/files#r6891207