]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Specify the zone when requesting zonegroup information.
authorNathan Hoad <nhoad@bloomberg.net>
Thu, 8 Jun 2023 17:41:53 +0000 (13:41 -0400)
committerTeoman ONAY <tonay@redhat.com>
Wed, 16 Aug 2023 08:37:23 +0000 (10:37 +0200)
Signed-off-by: Nathan Hoad <nhoad@bloomberg.net>
(cherry picked from commit 8923931df441da1181f38ecdcd4e7d0d5394336d)

library/radosgw_zone.py

index 51103b3d3691b5ec8638ee2860580866e61f9981..efb16b3d917ec55764348ff4a2a619be68cd31a8 100644 (file)
@@ -313,6 +313,7 @@ def get_zonegroup(module, container_image=None):
     '''
 
     cluster = module.params.get('cluster')
+    name = module.params.get('name')
     realm = module.params.get('realm')
     zonegroup = module.params.get('zonegroup')
 
@@ -323,6 +324,7 @@ def get_zonegroup(module, container_image=None):
         cluster,
         'zonegroup',
         'get',
+        '--rgw-zone=' + name,
         '--rgw-realm=' + realm,
         '--rgw-zonegroup=' + zonegroup,
         '--format=json'