Skip to content

Commit 564e241

Browse files
committed
#1555 Fix hw billing reports 0 items
1 parent 98feac7 commit 564e241

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SoftLayer/CLI/hardware/billing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def cli(env, identifier):
3131
table.add_row(['Provision Date', utils.lookup(result, 'billingItem', 'provisionDate')])
3232

3333
price_table = formatting.Table(['Item', 'Recurring Price'])
34-
for item in utils.lookup(result, 'billingItem', 'children') or []:
34+
for item in utils.lookup(result, 'billingItem', 'nextInvoiceChildren') or []:
3535
price_table.add_row([item['description'], item['nextInvoiceTotalRecurringAmount']])
3636

3737
table.add_row(['prices', price_table])

SoftLayer/fixtures/SoftLayer_Hardware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
'id': 6327,
88
'recurringFee': 1.54,
99
'nextInvoiceTotalRecurringAmount': 16.08,
10-
'children': [
10+
'nextInvoiceChildren': [
1111
{'description': 'test', 'nextInvoiceTotalRecurringAmount': 1},
1212
],
1313
'orderItem': {

0 commit comments

Comments
 (0)