diff --git a/easycloud/modules/gcp_googleapi/manager.py b/easycloud/modules/gcp_googleapi/manager.py index ecc6f77667e0a0f2a4e8bc881d84538b23881b71..3bbfc83e5c0b2e3c9d1fe7a9712eec32127faeec 100644 --- a/easycloud/modules/gcp_googleapi/manager.py +++ b/easycloud/modules/gcp_googleapi/manager.py @@ -215,7 +215,7 @@ class GCP(MetaManager): credentials = google.oauth2.service_account.Credentials.from_service_account_file(self.conf.gcp_service_account_file, scopes=SCOPES) elif self.conf.gcp_auth_type == self.conf.OAUTH2_CLIENT_AUTH_TYPE: flow = None - if self.conf.gcp_client_secrets_file is not None and len(self.conf.gcp_client_secrets_file) > 0: + if self.conf.gcp_client_secrets_file: flow = google_auth_oauthlib.flow.InstalledAppFlow.from_client_secrets_file(self.conf.gcp_client_secrets_file, SCOPES) else: flow = google_auth_oauthlib.flow.InstalledAppFlow.from_client_config(