mirror of https://github.com/apache/jclouds.git
Fix deleteAndVerifyContainerGone return value
Return true if the container does not exist -- this matches the behavior of Atmos and Swift. This allows deleteAndEnsurePathGone to terminate correctly with S3.
This commit is contained in:
parent
28d766b9df
commit
0c440c9c8a
|
@ -62,7 +62,7 @@ public class S3Utils {
|
|||
*/
|
||||
public static boolean deleteAndVerifyContainerGone(S3Client sync, String container) {
|
||||
sync.deleteBucketIfEmpty(container);
|
||||
return sync.bucketExists(container);
|
||||
return !sync.bucketExists(container);
|
||||
}
|
||||
|
||||
private static final Predicate<Annotation> ANNOTATIONTYPE_BUCKET = new Predicate<Annotation>() {
|
||||
|
|
Loading…
Reference in New Issue