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")