From 012616a2859466cdee0e5638035bd658a52e7524 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Thu, 25 Jul 2024 19:16:01 -0700 Subject: [PATCH] Fix bug in check ou --- src/gam/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gam/__init__.py b/src/gam/__init__.py index bb1a4913..f8f941ce 100755 --- a/src/gam/__init__.py +++ b/src/gam/__init__.py @@ -17881,10 +17881,10 @@ def doCheckOrgUnit(): if not pageToken: _finalizeGAPIpagesResult(pageMessage) printGotAccountEntities(totalItems) + if f is not None and orgUnitItemCounts['devices'] > 0: + writeCommandInfo('devices') + f.write(f'gam update ou {moveToOrgUnitPath} add cros_ou {orgUnitPath}\n') break - if f is not None and orgUnitItemCounts['devices'] > 0: - writeCommandInfo('devices') - f.write(f'gam update ou {moveToOrgUnitPath} add cros_ou {orgUnitPath}\n') except GAPI.invalidInput as e: message = str(e) # Invalid Input: xyz - Check for invalid pageToken!!