Skip to content

Commit

Permalink
Merge pull request #90 from salsadigitalauorg/fix/use-lagoon-access-t…
Browse files Browse the repository at this point in the history
…oken

[DEVOPS-559] fix: use lagoon access token
  • Loading branch information
steveworley authored Jul 31, 2024
2 parents 0b2b6bf + 5869d04 commit c515127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/plugins/inventory/lagoon.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ def fetch_lagoon_api_token(self, lagoon):
if rc > 0:
raise AnsibleError("Failed to fetch Lagoon API token: %s (error code: %s) " % (error, rc))

return token.decode("utf-8").strip()
return token['access_token'].strip()

def intWhenStr(val: Union[str,any]) -> Union[int,any]:
if isinstance(val, str):
Expand Down

0 comments on commit c515127

Please sign in to comment.