mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-29 17:58:36 +08:00
Merge pull request #10381 from ioito/automated-cherry-pick-of-#10380-upstream-release-3.7
Automated cherry pick of #10380: fix: add bucket tooltip
This commit is contained in:
+2734
-2703
File diff suppressed because it is too large
Load Diff
+922
-826
File diff suppressed because it is too large
Load Diff
@@ -1196,7 +1196,7 @@ func (bucket *SBucket) ValidateDeleteCondition(ctx context.Context) error {
|
||||
return bucket.SSharableVirtualResourceBase.ValidateDeleteCondition(ctx)
|
||||
}
|
||||
if bucket.ObjectCnt > 0 {
|
||||
return httperrors.NewNotEmptyError("not an empty bucket")
|
||||
return httperrors.NewNotEmptyError("Buckets that are not empty do not support this operation")
|
||||
}
|
||||
return bucket.ValidatePurgeCondition(ctx)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user