Skip to content

Commit

Permalink
Merge pull request #556 from parth-gr/run-as-usr-4.14
Browse files Browse the repository at this point in the history
Bug 2254345: [release-4.14] external - fix the run as a user flag
  • Loading branch information
travisn authored Sep 10, 2024
2 parents 4d8881f + 7ae46d5 commit 5968319
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy/examples/create-external-cluster-resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -965,8 +965,8 @@ def get_rbd_node_caps_and_entity(self):

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",
Expand Down Expand Up @@ -995,7 +995,7 @@ def get_caps_and_entity(self, user_name):
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}, "
Expand Down

0 comments on commit 5968319

Please sign in to comment.