mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-12 09:04:21 -07:00
Fix blank lines
This commit is contained in:
parent
5fd196d280
commit
6e6b8d4776
1 changed files with 0 additions and 2 deletions
|
@ -139,13 +139,11 @@ def post_request(generated_jwt, installation_id):
|
|||
raise AnsibleError(f"Error while dencoding JSON respone from github: {e}")
|
||||
return json_data.get('token')
|
||||
|
||||
|
||||
def get_token(key_path, app_id, installation_id, private_key, expiry=600):
|
||||
jwk = read_key(key_path, private_key)
|
||||
generated_jwt = encode_jwt(app_id, jwk, exp=expiry)
|
||||
return post_request(generated_jwt, installation_id)
|
||||
|
||||
|
||||
class LookupModule(LookupBase):
|
||||
def run(self, terms, variables=None, **kwargs):
|
||||
if not HAS_JWT:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue