Skip to content

Commit c54051c

Browse files
authored
fix api_key bug
1 parent 83185db commit c54051c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

kubernetes_asyncio/client/configuration.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,14 +411,12 @@ async def auth_settings(self):
411411
:return: The Auth Settings information dict.
412412
"""
413413
auth = {}
414-
if 'BearerToken' in self.api_key:
414+
if 'authorization' in self.api_key:
415415
auth['BearerToken'] = {
416416
'type': 'api_key',
417417
'in': 'header',
418418
'key': 'authorization',
419-
'value': await self.get_api_key_with_prefix(
420-
'BearerToken',
421-
),
419+
'value': await self.get_api_key_with_prefix('authorization'),
422420
}
423421
return auth
424422

0 commit comments

Comments
 (0)