From 6136ece5dd64027984fd3e4e0855964da4850e28 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Fri, 30 Jun 2017 17:00:52 -0700 Subject: [PATCH] Code fixes (#520) * Delete debugging print statements * Add missing \n to message --- src/gam.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gam.py b/src/gam.py index 7538d2d9..c1448e43 100755 --- a/src/gam.py +++ b/src/gam.py @@ -9471,7 +9471,7 @@ def doPrintOrgs(): else: print u'ERROR: %s is not a valid argument for "gam print orgs"' % sys.argv[i] sys.exit(2) - sys.stderr.write(u"Retrieving All Organizational Units for your account (may take some time on large domain)...") + sys.stderr.write(u"Retrieving All Organizational Units for your account (may take some time on large domain)...\n") if fields: get_fields = u','.join(fields) list_fields = u'organizationUnits(%s)' % get_fields @@ -9673,7 +9673,6 @@ def doPrintMobileDevices(): i += 1 elif myarg == u'fields': fields = u'nextPageToken,mobiledevices(%s)' % sys.argv[i+1] - print fields i += 2 elif myarg == u'orderby': orderBy = sys.argv[i+1].lower() @@ -9720,7 +9719,6 @@ def doPrintMobileDevices(): app_details.append(app.get(u'packageName', u'')) app_details.append(app.get(u'versionName', u'')) app_details.append(unicode(app.get(u'versionCode', u''))) - print app_details applications.append(u' - '.join(app_details)) mobiledevice[u'applications'] = u'\n'.join(applications) else: