From f00592d14c2e7cd280561129d170ff748dfedf15 Mon Sep 17 00:00:00 2001 From: Christopher Gallo Date: Mon, 30 Oct 2023 14:18:19 -0500 Subject: [PATCH] fixed a bug when hardware detail would fail when there was no billing Item --- SoftLayer/CLI/hardware/detail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoftLayer/CLI/hardware/detail.py b/SoftLayer/CLI/hardware/detail.py index b25c4ad60..fe8661153 100644 --- a/SoftLayer/CLI/hardware/detail.py +++ b/SoftLayer/CLI/hardware/detail.py @@ -36,7 +36,7 @@ def cli(env, identifier, passwords, price, components): operating_system = utils.lookup(result, 'operatingSystem', 'softwareLicense', 'softwareDescription') or {} memory = formatting.gb(result.get('memoryCapacity', 0)) owner = None - if utils.lookup(result, 'billingItem') != []: + if utils.lookup(result, 'billingItem'): owner = utils.lookup(result, 'billingItem', 'orderItem', 'order', 'userRecord', 'username') table_hard_drives = formatting.Table(['Name', 'Capacity', 'Serial #'])