From 8d89faf615d9437ff2b66e8f12aec70c1958b14f Mon Sep 17 00:00:00 2001 From: parth-gr Date: Wed, 13 Dec 2023 13:55:14 +0530 Subject: [PATCH] external: fix the run as a user flag there is a hardcoded value of "client.healthchecker" which needs to be replaced by self.run_as_user Signed-off-by: parth-gr --- 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 04cd979f6..43b1499be 100644 --- a/deploy/examples/create-external-cluster-resources.py +++ b/deploy/examples/create-external-cluster-resources.py @@ -997,8 +997,8 @@ class RadosJSON: return caps, entity - def get_healthchecker_caps_and_entity(self): - entity = "client.healthchecker" + def get_defaultUser_caps_and_entity(self): + entity = self.run_as_user caps = { "mon": "allow r, allow command quorum_status, allow command version", "mgr": "allow command config", @@ -1027,7 +1027,7 @@ class RadosJSON: if "client.healthchecker" in user_name: if "client.healthchecker" != user_name: self._arg_parser.restricted_auth_permission = True - return self.get_healthchecker_caps_and_entity() + return self.get_defaultUser_caps_and_entity() raise ExecutionFailureException( f"no user found with user_name: {user_name}, "