Skip to content

Commit

Permalink
change the way to fetch token
Browse files Browse the repository at this point in the history
  • Loading branch information
effany committed Oct 10, 2024
1 parent 941d996 commit b9adaaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/connectors/aqua/lib/aqua_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_token(auth_url, username, password)

if auth_response.code == 200
auth_json = JSON.parse(auth_response.body)
token = auth_json.dig("data", "token")
token = auth_json["token"]

print_error "Login failed: No token received" unless token
else
Expand Down

0 comments on commit b9adaaa

Please sign in to comment.