From b9adaaa4c33ab6641969b283d76311518942c4e9 Mon Sep 17 00:00:00 2001 From: effany <72710849+effany@users.noreply.github.com> Date: Thu, 10 Oct 2024 16:41:17 +0200 Subject: [PATCH] change the way to fetch token --- tasks/connectors/aqua/lib/aqua_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/connectors/aqua/lib/aqua_helper.rb b/tasks/connectors/aqua/lib/aqua_helper.rb index 0d6f0a61..cc7994c9 100644 --- a/tasks/connectors/aqua/lib/aqua_helper.rb +++ b/tasks/connectors/aqua/lib/aqua_helper.rb @@ -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