From: Nizamudeen A Date: Tue, 7 Feb 2023 19:14:37 +0000 (+0530) Subject: mgr/rgw: rename endpoints to zone_endpoints to match rgw spec X-Git-Tag: v18.1.0~408^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=252a2d9340572d6921448e9acad5c65fba426ac7;p=ceph.git mgr/rgw: rename endpoints to zone_endpoints to match rgw spec As per the docs (and the codes), the rgw_spec.endpoint should actually be rgw_spec.zone_endpoint. ``` rgw_realm: myrealm rgw_zonegroup: myzonegroup rgw_zone: myzone zone_endpoints: http://:, http://: ``` Refer: https://docs.ceph.com/en/latest/mgr/rgw/#rgw-realm-operations Signed-off-by: Nizamudeen A --- diff --git a/src/python-common/ceph/rgw/rgwam_core.py b/src/python-common/ceph/rgw/rgwam_core.py index ac74405babc5..7041ea1544f0 100644 --- a/src/python-common/ceph/rgw/rgwam_core.py +++ b/src/python-common/ceph/rgw/rgwam_core.py @@ -780,13 +780,13 @@ class RGWAM: zone = self.create_zone(realm, zonegroup, rgw_spec.rgw_zone, False, # secondary zone - access_key, secret, endpoints=rgw_spec.endpoints) + access_key, secret, endpoints=rgw_spec.zone_endpoints) self.update_period(realm, zonegroup, zone) period = RGWPeriod(period_info) logging.debug(period.to_json()) - if start_radosgw and rgw_spec.endpoints is None: + if start_radosgw and rgw_spec.zone_endpoints is None: secondary_realm_token = RealmToken(realm_name, realm_id, None, # no endpoint