diff --git a/pyicloud/cmdline.py b/pyicloud/cmdline.py index 950fe04..e7a1f70 100755 --- a/pyicloud/cmdline.py +++ b/pyicloud/cmdline.py @@ -166,10 +166,10 @@ def main(args=None): for dev in api.devices: if ( - not command_line.device_id - or ( - command_line.device_id.strip().lower() - == dev.content["id"].strip().lower() + not command_line.device_id or + ( + command_line.device_id.strip().lower() == + dev.content["id"].strip().lower() ) ): # List device(s)