Skip to content

Commit

Permalink
qa/rgw: set api_name if not provided in create_zonegroup
Browse files Browse the repository at this point in the history
If api_name is not set in the config, use name as the api_name,
otherwise on RGW it will be set to an empty string.

Signed-off-by: Seena Fallah <[email protected]>
  • Loading branch information
clwluvw committed Dec 19, 2024
1 parent 19aa6f7 commit c21b5f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qa/tasks/rgw_multisite.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@ def create_zonegroup(cluster, gateways, period, config):
if endpoints:
# replace client names with their gateway endpoints
config['endpoints'] = extract_gateway_endpoints(gateways, endpoints)
if not config.get('api_name'): # otherwise it will be set to an empty string
config['api_name'] = config['name']
zonegroup = multisite.ZoneGroup(config['name'], period)
# `zonegroup set` needs --default on command line, and 'is_master' in json
args = is_default_arg(config)
Expand Down

0 comments on commit c21b5f7

Please sign in to comment.