From 817920940e2019e952abc3658e21e871d67c1e2a Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Sun, 6 Dec 2020 10:58:01 -0500 Subject: [PATCH] Fix crash on no device users --- src/gam/gapi/cloudidentity/devices.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gam/gapi/cloudidentity/devices.py b/src/gam/gapi/cloudidentity/devices.py index 0d1c23e4..04d4e49e 100644 --- a/src/gam/gapi/cloudidentity/devices.py +++ b/src/gam/gapi/cloudidentity/devices.py @@ -69,12 +69,12 @@ def info(): 'deviceUsers', parent=name, customer=customer) for device_user in device_users: parent = device_user['name'] - client_states = gapi.get_all_pages(ci.devices().deviceUsers().clientStates(), 'list', 'clientStates', parent=parent, customer=customer) + device_user['client_states'] = gapi.get_all_pages( + ci.devices().deviceUsers().clientStates(), + 'list', 'clientStates', parent=parent, customer=customer) display.print_json(device) print('Device Users:') display.print_json(device_users) - print('Client States:') - display.print_json(client_states) def _generic_action(action, device_user=False):