From 4aa3e45540625db081738ce4baf6b3695f1238e1 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Fri, 3 Jul 2026 09:05:51 -0400 Subject: [PATCH] fix check serviceaccount --- src/gam/cmd/people.py | 3 +++ src/gam/cmd/project.py | 4 ++-- src/gam/cmd/userop/photos.py | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/gam/cmd/people.py b/src/gam/cmd/people.py index c8252d72..1348482a 100644 --- a/src/gam/cmd/people.py +++ b/src/gam/cmd/people.py @@ -4,6 +4,9 @@ import re import json import sys +import google.auth +import google.auth.exceptions + from gamlib import glaction from gamlib import glapi as API from gamlib import glcfg as GC diff --git a/src/gam/cmd/project.py b/src/gam/cmd/project.py index 8d9c3173..15459239 100644 --- a/src/gam/cmd/project.py +++ b/src/gam/cmd/project.py @@ -1190,7 +1190,7 @@ def checkServiceAccount(users): else: scopeStatus = testFail allScopesPass = False - printPassFail(scope, f'{scopeStatus}{currentCount(j, jcount)}') + printPassFail(scope, f'{scopeStatus}{_getMain().currentCount(j, jcount)}') Ind.Decrement() if checkDeprecatedScopes: deprecatedScopes = sorted(API.DEPRECATED_SCOPES) @@ -1222,7 +1222,7 @@ def checkServiceAccount(users): scopeStatus = testPass else: scopeStatus = testPass - printPassFail(scope, f'{scopeStatus}{currentCount(j, jcount)}') + printPassFail(scope, f'{scopeStatus}{_getMain().currentCount(j, jcount)}') Ind.Decrement() service_account = GM.Globals[GM.OAUTH2SERVICE_JSON_DATA]['client_id'] if allScopesPass: diff --git a/src/gam/cmd/userop/photos.py b/src/gam/cmd/userop/photos.py index de82ddec..34484103 100644 --- a/src/gam/cmd/userop/photos.py +++ b/src/gam/cmd/userop/photos.py @@ -7,6 +7,9 @@ Part of the _userop_tmp sub-package.""" import re import sys +import google.auth +import google.auth.exceptions + from gamlib import glaction from gamlib import glapi as API from gamlib import glcfg as GC