mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-02-04 07:51:50 +00:00
github_app_access_token: fix compatibility import of jwt (#10810)
Fix compatibility import of jwt.
This commit is contained in:
parent
562d2ae5b1
commit
c1e877d254
2 changed files with 4 additions and 1 deletions
|
|
@ -77,7 +77,8 @@ except ImportError:
|
|||
HAS_PYTHON_JWT = False # vs pyjwt
|
||||
if HAS_JWT and hasattr(jwt, 'JWT'):
|
||||
HAS_PYTHON_JWT = True
|
||||
from jwt import jwk_from_pem, jwt_instance
|
||||
from jwt import jwk_from_pem, JWT
|
||||
jwt_instance = JWT()
|
||||
|
||||
try:
|
||||
from cryptography.hazmat.primitives import serialization
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue