Fix blank lines

This commit is contained in:
Bruno Lavoie 2025-07-03 12:56:38 -04:00
commit 6e6b8d4776

View file

@ -139,13 +139,11 @@ def post_request(generated_jwt, installation_id):
raise AnsibleError(f"Error while dencoding JSON respone from github: {e}") raise AnsibleError(f"Error while dencoding JSON respone from github: {e}")
return json_data.get('token') return json_data.get('token')
def get_token(key_path, app_id, installation_id, private_key, expiry=600): def get_token(key_path, app_id, installation_id, private_key, expiry=600):
jwk = read_key(key_path, private_key) jwk = read_key(key_path, private_key)
generated_jwt = encode_jwt(app_id, jwk, exp=expiry) generated_jwt = encode_jwt(app_id, jwk, exp=expiry)
return post_request(generated_jwt, installation_id) return post_request(generated_jwt, installation_id)
class LookupModule(LookupBase): class LookupModule(LookupBase):
def run(self, terms, variables=None, **kwargs): def run(self, terms, variables=None, **kwargs):
if not HAS_JWT: if not HAS_JWT: