Skip to content

Commit 1db96f6

Browse files
author
caberos
committed
add billing and lastTransaction on hardware detail
1 parent c897382 commit 1db96f6

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

SoftLayer/CLI/hardware/detail.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ def cli(env, identifier, passwords, price):
6161
table.add_row(['os_version', operating_system.get('version') or formatting.blank()])
6262
table.add_row(['created', result['provisionDate'] or formatting.blank()])
6363
table.add_row(['owner', owner or formatting.blank()])
64+
table.add_row(['LastTransaction', result['lastTransaction']['transactionGroup']['name']])
65+
table.add_row(['billing', 'Hourly' if result['hourlyBillingFlag'] else'Monthly'])
6466

6567
vlan_table = formatting.Table(['type', 'number', 'id'])
6668
for vlan in result['networkVlans']:

SoftLayer/managers/hardware.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ def get_hardware(self, hardware_id, **kwargs):
263263
'children[nextInvoiceTotalRecurringAmount],'
264264
'orderItem.order.userRecord[username]'
265265
'],'
266+
'lastTransaction[transactionGroup[name]],'
266267
'hourlyBillingFlag,'
267268
'tagReferences[id,tag[name,id]],'
268269
'networkVlans[id,vlanNumber,networkSpace],'

0 commit comments

Comments
 (0)