]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: fix bucket replication disable 64775/head
authorNaman Munet <naman.munet@ibm.com>
Sun, 27 Jul 2025 13:53:17 +0000 (19:23 +0530)
committerNaman Munet <naman.munet@ibm.com>
Thu, 31 Jul 2025 13:12:05 +0000 (18:42 +0530)
fixes: https://tracker.ceph.com/issues/72074

Signed-off-by: Naman Munet <naman.munet@ibm.com>
(cherry picked from commit 628ada5d9540f7ea3d9324c89388d54c8e954b36)

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

index 210108ff54ad264b8daa69afc40ce4d18b3ea0df..b382c3009b41f471ff5370d699347d11ba5dfc89 100755 (executable)
@@ -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)