diff --git a/certbot-dns-google/certbot_dns_google/_internal/dns_google.py b/certbot-dns-google/certbot_dns_google/_internal/dns_google.py index fd69abc2c..57106f1da 100644 --- a/certbot-dns-google/certbot_dns_google/_internal/dns_google.py +++ b/certbot-dns-google/certbot_dns_google/_internal/dns_google.py @@ -82,7 +82,7 @@ class _GoogleClient: scopes = ['https://www.googleapis.com/auth/ndev.clouddns.readwrite'] if account_json is not None: try: - credentials = Credentials.from_service_account_file('service-account.json',scopes) + credentials = Credentials.from_service_account_file(account_json, scopes) with open(account_json) as account: self.project_id = json.load(account)['project_id'] except Exception as e: