Skip to content

Commit f00592d

Browse files
fixed a bug when hardware detail would fail when there was no billing Item
1 parent 35139b4 commit f00592d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SoftLayer/CLI/hardware/detail.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def cli(env, identifier, passwords, price, components):
3636
operating_system = utils.lookup(result, 'operatingSystem', 'softwareLicense', 'softwareDescription') or {}
3737
memory = formatting.gb(result.get('memoryCapacity', 0))
3838
owner = None
39-
if utils.lookup(result, 'billingItem') != []:
39+
if utils.lookup(result, 'billingItem'):
4040
owner = utils.lookup(result, 'billingItem', 'orderItem', 'order', 'userRecord', 'username')
4141

4242
table_hard_drives = formatting.Table(['Name', 'Capacity', 'Serial #'])

0 commit comments

Comments
 (0)