From d2fc706b179600357ccd25bbb0371c001364523a Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Wed, 24 Jul 2019 12:28:22 -0400 Subject: [PATCH] fix doit mobile update --- src/gam.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gam.py b/src/gam.py index 63754744..ac5b97f2 100755 --- a/src/gam.py +++ b/src/gam.py @@ -9728,14 +9728,14 @@ def doUpdateMobile(): print('Updating %s devices' % len(devices)) describe_as = 'Performing' else: - print('Showing changes that would be made, not actually making changes because doit argument not specified') + print('Showing %s changes that would be made, not actually making changes because doit argument not specified' % len(devices)) describe_as = 'Would perform' for device in devices: device_user = device.get('email', [''])[0] if only_users and device_user not in only_users: print('Skipping device for user %s that did not match if_users argument' % device_user) else: - print('%s %s on user %s device %s' % (describe_as, body['action'], device_user, device['resourceId']) + print('%s %s on user %s device %s' % (describe_as, body['action'], device_user, device['resourceId'])) if doit: callGAPI(cd.mobiledevices(), 'action', resourceId=device['resourceId'], body=body, customerId=GC_Values[GC_CUSTOMER_ID])