Specify the zone when requesting zonegroup information.

Signed-off-by: Nathan Hoad <nhoad@bloomberg.net>
(cherry picked from commit 8923931df4)
pull/7453/head
Nathan Hoad 2023-06-08 13:41:53 -04:00 committed by Teoman ONAY
parent 650d11d280
commit 0cec4f301f
1 changed files with 2 additions and 0 deletions

View File

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