From 183c695be1312ac1d4829a990ab3cd5d1e4ca5a5 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Wed, 2 Apr 2025 10:34:09 -0500 Subject: [PATCH] Fix errant warning about client_secret and access_token (#84916) --- lib/ansible/galaxy/token.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/galaxy/token.py b/lib/ansible/galaxy/token.py index 1efc40f9871..0f9f3ee19df 100644 --- a/lib/ansible/galaxy/token.py +++ b/lib/ansible/galaxy/token.py @@ -67,7 +67,7 @@ class KeycloakToken(object): payload['client_secret'] = self.client_secret payload['scope'] = 'api.console' payload['grant_type'] = 'client_credentials' - if self.access_token: + if self.access_token not in (None, NoTokenSentinel): display.warning( 'Found both a client_secret and access_token for galaxy authentication, ignoring access_token' )