Skip to content

Commit 6a24529

Browse files
authored
Merge pull request ceph#64708 from rhcs-dashboard/fix-bucket-replication
mgr/dashboard: fix bucket replication disable Reviewed-by: Aashish Sharma <[email protected]> Reviewed-by: Abhishek Desai <[email protected]>
2 parents 66c704b + 628ada5 commit 6a24529

File tree

1 file changed

+1
-1
lines changed
  • src/pybind/mgr/dashboard/controllers

1 file changed

+1
-1
lines changed

src/pybind/mgr/dashboard/controllers/rgw.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ def set(self, bucket, bucket_id, uid=None, versioning_state=None,
689689
self._set_policy(bucket_name, bucket_policy, daemon_name, uid)
690690
if canned_acl:
691691
self._set_acl(bucket_name, canned_acl, uid, daemon_name)
692-
if replication:
692+
if replication is not None:
693693
self._set_replication(bucket_name, replication, uid, daemon_name)
694694
if lifecycle and not lifecycle == '{}':
695695
self._set_lifecycle(bucket_name, lifecycle, daemon_name, uid)

0 commit comments

Comments
 (0)