From a11aac37ea06e06934fc335897c4d8f43b1ead85 Mon Sep 17 00:00:00 2001 From: RCdeWit Date: Thu, 10 Mar 2022 13:55:37 +0100 Subject: [PATCH] Process feedback @skshetry and @karajan1001 --- dvc/fs/gdrive.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dvc/fs/gdrive.py b/dvc/fs/gdrive.py index 3bc09d885..ca7ae4b6d 100644 --- a/dvc/fs/gdrive.py +++ b/dvc/fs/gdrive.py @@ -109,14 +109,12 @@ class GDriveFileSystem(FSSpecWrapper): # pylint:disable=abstract-method if ( self._use_service_account and not self._service_account_json_file_path - and "GDRIVE_CREDENTIALS_DATA" not in os.environ + and GDriveFileSystem.GDRIVE_CREDENTIALS_DATA not in os.environ ): raise DvcException( "To use service account, set " "`gdrive_service_account_json_file_path`, and optionally" "`gdrive_service_account_user_email` in DVC config\n" - "You can also provide these using the GDRIVE_CREDENTIALS_DATA" - "environment variable.\n" "Learn more at {}".format( format_link("https://man.dvc.org/remote/modify") )