Skip to content

Commit c1e877d

Browse files
authored
github_app_access_token: fix compatibility import of jwt (#10810)
Fix compatibility import of jwt.
1 parent 562d2ae commit c1e877d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bugfixes:
2+
- "github_app_access_token lookup plugin - fix compatibility imports for using jwt (https://github.com/ansible-collections/community.general/issues/10807, https://github.com/ansible-collections/community.general/pull/10810)."

plugins/lookup/github_app_access_token.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@
7777
HAS_PYTHON_JWT = False # vs pyjwt
7878
if HAS_JWT and hasattr(jwt, 'JWT'):
7979
HAS_PYTHON_JWT = True
80-
from jwt import jwk_from_pem, jwt_instance
80+
from jwt import jwk_from_pem, JWT
81+
jwt_instance = JWT()
8182

8283
try:
8384
from cryptography.hazmat.primitives import serialization

0 commit comments

Comments
 (0)