From 5aca33b5a6085e769cfad8371a4b5149f4234b30 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Mon, 29 Mar 2021 06:41:22 -0700 Subject: [PATCH] Fixed bug in `gam print vaultcounts ... everyone` which caused the following error: ERROR: getUsersToModify coding error --- src/GamUpdate.txt | 7 +++++++ src/gam/__init__.py | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/GamUpdate.txt b/src/GamUpdate.txt index 1069f8a2..c70590f7 100644 --- a/src/GamUpdate.txt +++ b/src/GamUpdate.txt @@ -1,3 +1,10 @@ +6.00.05 + +Fixed bug in `gam print vaultcounts ... everyone` which caused the following error: +``` +ERROR: getUsersToModify coding error +``` + 6.00.04 Updated `` to allow specifying a list of email notification event types. diff --git a/src/gam/__init__.py b/src/gam/__init__.py index 0d648fda..14280cf4 100755 --- a/src/gam/__init__.py +++ b/src/gam/__init__.py @@ -23,7 +23,7 @@ """ __author__ = 'Ross Scroggs ' -__version__ = '6.00.04' +__version__ = '6.00.05' __license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)' import base64 @@ -28741,7 +28741,7 @@ def doPrintVaultCounts(): if search_method == 'ACCOUNT': query_accounts = query.get('accountInfo', []) elif search_method == 'ENTIRE_ORG': - query_accounts = getItemsToModify(Cmd.ENTITY_SELECTOR_ALL, Cmd.ENTITY_USERS) + query_accounts = getItemsToModify(Cmd.ENTITY_ALL_USERS, '') elif search_method == 'ORG_UNIT': query_accounts = getItemsToModify(Cmd.ENTITY_OU, query['orgUnitInfo']['orgUnitId']) mailcounts = response.get('mailCountResult', {})