From 2be500419b80ff484e5376dd53d2a9fe12d26134 Mon Sep 17 00:00:00 2001 From: Seth Foster Date: Wed, 5 Mar 2025 13:08:40 -0500 Subject: [PATCH] import DEFAULT_OIDC_TOKEN_ENDPOINT Signed-off-by: Seth Foster --- awx/main/analytics/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/main/analytics/core.py b/awx/main/analytics/core.py index 43ee36df33d8..30eec4e503be 100644 --- a/awx/main/analytics/core.py +++ b/awx/main/analytics/core.py @@ -22,7 +22,7 @@ from awx.main.models import Job from awx.main.access import access_registry from awx.main.utils import get_awx_http_client_headers, set_environ, datetime_hook -from awx.main.utils.analytics_proxy import OIDCClient, DEFAULT_OIDC_ENDPOINT +from awx.main.utils.analytics_proxy import OIDCClient, DEFAULT_OIDC_TOKEN_ENDPOINT __all__ = ['register', 'gather', 'ship'] @@ -379,7 +379,7 @@ def ship(path): with set_environ(**settings.AWX_TASK_ENV): if rh_user and rh_password: try: - client = OIDCClient(rh_user, rh_password, DEFAULT_OIDC_ENDPOINT, ['api.console']) + client = OIDCClient(rh_user, rh_password, DEFAULT_OIDC_TOKEN_ENDPOINT, ['api.console']) response = client.make_request("POST", url, headers=s.headers, files=files, verify=settings.INSIGHTS_CERT_PATH, timeout=(31, 31)) except requests.RequestException: logger.error("Automation Analytics API request failed, trying base auth method")