mirror of https://github.com/apache/jclouds.git
Throw ContainerNotFoundException from removeBlob
This makes removeBlob consistent with all other user-facing methods.
This commit is contained in:
parent
e7c398321a
commit
e2bf20a619
|
@ -229,6 +229,9 @@ public class LocalAsyncBlobStore extends BaseAsyncBlobStore {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public ListenableFuture<Void> removeBlob(final String container, final String key) {
|
public ListenableFuture<Void> removeBlob(final String container, final String key) {
|
||||||
|
if (!storageStrategy.containerExists(container)) {
|
||||||
|
return Futures.immediateFailedFuture(cnfe(container));
|
||||||
|
}
|
||||||
storageStrategy.removeBlob(container, key);
|
storageStrategy.removeBlob(container, key);
|
||||||
return immediateFuture(null);
|
return immediateFuture(null);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue