From 2f71fba8bf3b60c26964c83fe67b759228f2c810 Mon Sep 17 00:00:00 2001 From: Soham Banerjee Date: Thu, 1 Jul 2021 11:53:52 +0530 Subject: [PATCH] used google-auth --- 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 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: