Specify the zone when requesting zonegroup information.

Signed-off-by: Nathan Hoad <nhoad@bloomberg.net>
pull/7452/head
Nathan Hoad 2023-06-08 13:41:53 -04:00 committed by Guillaume Abrioux
parent d1f85f5ad3
commit 8923931df4
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')
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'