Skip to content

Commit

Permalink
openshift.py: fixed a errorenous if statement when checking if a user…
Browse files Browse the repository at this point in the history
… exists on the cluster
  • Loading branch information
QuanMPhm committed Mar 12, 2024
1 parent 93853a0 commit b0f8d16
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/coldfront_plugin_cloud/openshift.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,7 @@ def reactivate_project(self, project_id):
def get_federated_user(self, username):
try:
if self.client.user_exists(username) and self.client.identity_exists(
username and self.client.useridentitymapping_exists(username, username)
):
username) and self.client.useridentitymapping_exists(username, username):
return {"username": username}

raise NotFound("404: " + f"user ({username}) does not exist")
Expand Down

0 comments on commit b0f8d16

Please sign in to comment.