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
80a4430035
commit
60e3763999
|
@ -229,6 +229,9 @@ public class LocalAsyncBlobStore extends BaseAsyncBlobStore {
|
|||
*/
|
||||
@Override
|
||||
public ListenableFuture<Void> removeBlob(final String container, final String key) {
|
||||
if (!storageStrategy.containerExists(container)) {
|
||||
return Futures.immediateFailedFuture(cnfe(container));
|
||||
}
|
||||
storageStrategy.removeBlob(container, key);
|
||||
return immediateFuture(null);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue