mirror of
https://github.com/apache/jclouds.git
synced 2025-02-16 23:16:58 +00:00
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) {
|
public static boolean deleteAndVerifyContainerGone(S3Client sync, String container) {
|
||||||
sync.deleteBucketIfEmpty(container);
|
sync.deleteBucketIfEmpty(container);
|
||||||
return sync.bucketExists(container);
|
return !sync.bucketExists(container);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final Predicate<Annotation> ANNOTATIONTYPE_BUCKET = new Predicate<Annotation>() {
|
private static final Predicate<Annotation> ANNOTATIONTYPE_BUCKET = new Predicate<Annotation>() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user