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 3a2686a63..3128b3703 100644 --- a/certbot-dns-google/certbot_dns_google/_internal/dns_google.py +++ b/certbot-dns-google/certbot_dns_google/_internal/dns_google.py @@ -5,7 +5,7 @@ import logging from googleapiclient import discovery from googleapiclient import errors as googleapiclient_errors import httplib2 -from oauth2client.service_account import ServiceAccountCredentials +from google.oauth2.service_account import Credentials import zope.interface from certbot import errors @@ -82,7 +82,7 @@ class _GoogleClient: scopes = ['https://www.googleapis.com/auth/ndev.clouddns.readwrite'] if account_json is not None: try: - credentials = ServiceAccountCredentials.from_json_keyfile_name(account_json, scopes) + credentials = Credentials.from_json_keyfile_name(account_json, scopes) with open(account_json) as account: self.project_id = json.load(account)['project_id'] except Exception as e: