From: Naman Munet Date: Sun, 27 Jul 2025 13:53:17 +0000 (+0530) Subject: mgr/dashboard: fix bucket replication disable X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=628ada5d9540f7ea3d9324c89388d54c8e954b36;p=ceph.git mgr/dashboard: fix bucket replication disable fixes: https://tracker.ceph.com/issues/72074 Signed-off-by: Naman Munet --- diff --git a/src/pybind/mgr/dashboard/controllers/rgw.py b/src/pybind/mgr/dashboard/controllers/rgw.py index b45756a338c..13ee781c9a0 100755 --- a/src/pybind/mgr/dashboard/controllers/rgw.py +++ b/src/pybind/mgr/dashboard/controllers/rgw.py @@ -689,7 +689,7 @@ class RgwBucket(RgwRESTController): self._set_policy(bucket_name, bucket_policy, daemon_name, uid) if canned_acl: self._set_acl(bucket_name, canned_acl, uid, daemon_name) - if replication: + if replication is not None: self._set_replication(bucket_name, replication, uid, daemon_name) if lifecycle and not lifecycle == '{}': self._set_lifecycle(bucket_name, lifecycle, daemon_name, uid)