diff options
author | Seena Fallah <seenafallah@gmail.com> | 2024-12-19 23:09:03 +0100 |
---|---|---|
committer | Seena Fallah <seenafallah@gmail.com> | 2024-12-19 23:09:03 +0100 |
commit | c21b5f7e0b1a48e7a4b4e21d1d357e8f2f26a1ac (patch) | |
tree | e2b0bc5bb4bcb3e50cd5faa74c3205eb00503659 /qa | |
parent | rgw: respect location constraint in master zonegroup (diff) | |
download | ceph-c21b5f7e0b1a48e7a4b4e21d1d357e8f2f26a1ac.tar.xz ceph-c21b5f7e0b1a48e7a4b4e21d1d357e8f2f26a1ac.zip |
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 <seenafallah@gmail.com>
Diffstat (limited to 'qa')
-rw-r--r-- | qa/tasks/rgw_multisite.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qa/tasks/rgw_multisite.py b/qa/tasks/rgw_multisite.py index e83a54efc2b..f93ca017fa2 100644 --- a/qa/tasks/rgw_multisite.py +++ b/qa/tasks/rgw_multisite.py @@ -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) |