diff --git a/plugins/lookup/github_app_access_token.py b/plugins/lookup/github_app_access_token.py index a9d484a03c..747b857815 100644 --- a/plugins/lookup/github_app_access_token.py +++ b/plugins/lookup/github_app_access_token.py @@ -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: