From bf5a46d754876cfe026d350b9cad5d293fe30be9 Mon Sep 17 00:00:00 2001 From: Soham Banerjee Date: Thu, 1 Jul 2021 12:12:47 +0530 Subject: [PATCH] updated --- certbot-dns-google/certbot_dns_google/_internal/dns_google.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 3128b3703..a3fe7c0e7 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 google.oauth2.service_account import Credentials +from google.oauth2 import ServiceAccountCredentials 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 = Credentials.from_json_keyfile_name(account_json, scopes) + credentials = ServiceAccountCredentials.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: