From bd22ea25045f66632de07e19370e31aeeea2dfc8 Mon Sep 17 00:00:00 2001 From: Nathan Hoad Date: Thu, 8 Jun 2023 13:41:53 -0400 Subject: [PATCH] Specify the zone when requesting zonegroup information. Signed-off-by: Nathan Hoad (cherry picked from commit 8923931df441da1181f38ecdcd4e7d0d5394336d) --- library/radosgw_zone.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/radosgw_zone.py b/library/radosgw_zone.py index 51103b3d3..efb16b3d9 100644 --- a/library/radosgw_zone.py +++ b/library/radosgw_zone.py @@ -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'