Skip to content

Commit

Permalink
Fix ldap and keycloak tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
newswangerd committed Jul 5, 2023
1 parent d661d3b commit 5a0c1cd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions galaxy_ng/tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,9 @@ def __getitem__(self, key):
try:
if CREDENTIALS[p["username"]].get("gen_token", False):
return get_standalone_token(p, self["url"])
return p.get("token", None)
except KeyError:
pass
finally:
return self.PROFILES[self.profile]["token"]
return p.get("token", None)
else:
return None

Expand Down

0 comments on commit 5a0c1cd

Please sign in to comment.