Fix errant warning about client_secret and access_token (#84916)

pull/84917/head
Matt Martz 8 months ago committed by GitHub
parent 399d2841c8
commit 183c695be1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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'
)

Loading…
Cancel
Save