mirror of
https://github.com/ansible/ansible.git
synced 2026-08-03 08:03:05 +02:00
Fix errant warning about client_secret and access_token (#84916)
This commit is contained in:
@@ -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'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user