From 252a2d9340572d6921448e9acad5c65fba426ac7 Mon Sep 17 00:00:00 2001 From: Nizamudeen A Date: Wed, 8 Feb 2023 00:44:37 +0530 Subject: [PATCH] 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 --- src/python-common/ceph/rgw/rgwam_core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python-common/ceph/rgw/rgwam_core.py b/src/python-common/ceph/rgw/rgwam_core.py index ac74405babc56..7041ea1544f00 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 -- 2.39.5