From 152fb563cfd52ccf737ab8707f5869e416896787 Mon Sep 17 00:00:00 2001 From: parth-gr Date: Wed, 30 Mar 2022 20:12:29 +0530 Subject: [PATCH] rgw: change name of rgw admin keys Corrected RGW_ADMIN_OPS_USER_ACCESS_KEY and RGW_ADMIN_OPS_USER_SECRET_KEY so it should be output correctely when called script with bash format output Signed-off-by: parth-gr (cherry picked from commit 63945df72d17a21d212d07e83620293c9bc476c4) --- deploy/examples/create-external-cluster-resources.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy/examples/create-external-cluster-resources.py b/deploy/examples/create-external-cluster-resources.py index 9c912af75..b69d2c46f 100644 --- a/deploy/examples/create-external-cluster-resources.py +++ b/deploy/examples/create-external-cluster-resources.py @@ -869,7 +869,7 @@ class RadosJSON: if self._arg_parser.dry_run: self.create_rgw_admin_ops_user() else: - self.out_map['ACCESS_KEY'], self.out_map['SECRET_KEY'] = self.create_rgw_admin_ops_user() + self.out_map['RGW_ADMIN_OPS_USER_ACCESS_KEY'], self.out_map['RGW_ADMIN_OPS_USER_SECRET_KEY'] = self.create_rgw_admin_ops_user() if self._arg_parser.rgw_tls_cert_path: self.out_map['RGW_TLS_CERT'] = self.validate_rgw_endpoint_tls_cert() @@ -1077,8 +1077,8 @@ class RadosJSON: "name": "rgw-admin-ops-user", "kind": "Secret", "data": { - "accessKey": self.out_map['ACCESS_KEY'], - "secretKey": self.out_map['SECRET_KEY'] + "accessKey": self.out_map['RGW_ADMIN_OPS_USER_ACCESS_KEY'], + "secretKey": self.out_map['RGW_ADMIN_OPS_USER_SECRET_KEY'] } }) # if 'RGW_TLS_CERT' exists, then only add the "ceph-rgw-tls-cert" secret