Skip to content

Commit c21b5f7

Browse files
committed
qa/rgw: set api_name if not provided in create_zonegroup
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]>
1 parent 19aa6f7 commit c21b5f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

qa/tasks/rgw_multisite.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,8 @@ def create_zonegroup(cluster, gateways, period, config):
361361
if endpoints:
362362
# replace client names with their gateway endpoints
363363
config['endpoints'] = extract_gateway_endpoints(gateways, endpoints)
364+
if not config.get('api_name'): # otherwise it will be set to an empty string
365+
config['api_name'] = config['name']
364366
zonegroup = multisite.ZoneGroup(config['name'], period)
365367
# `zonegroup set` needs --default on command line, and 'is_master' in json
366368
args = is_default_arg(config)

0 commit comments

Comments
 (0)