From: Naman Munet Date: Sun, 27 Jul 2025 13:53:17 +0000 (+0530) Subject: mgr/dashboard: fix bucket replication disable X-Git-Tag: v20.1.1~139^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=aaa1913df27d0f36c267944dca26f0dac7452c15;p=ceph.git mgr/dashboard: fix bucket replication disable fixes: https://tracker.ceph.com/issues/72074 Signed-off-by: Naman Munet (cherry picked from commit 628ada5d9540f7ea3d9324c89388d54c8e954b36) --- diff --git a/src/pybind/mgr/dashboard/controllers/rgw.py b/src/pybind/mgr/dashboard/controllers/rgw.py index 210108ff54ad2..b382c3009b41f 100755 --- a/src/pybind/mgr/dashboard/controllers/rgw.py +++ b/src/pybind/mgr/dashboard/controllers/rgw.py @@ -672,7 +672,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)