Skip to content

Commit 19f2898

Browse files
author
caberos
committed
fix Christopher code review comments
1 parent 5c3cd04 commit 19f2898

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

SoftLayer/CLI/hardware/detail.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,11 @@ 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(['last_transaction',
65-
utils.lookup(result, 'lastTransaction', 'transactionGroup', 'name')])
64+
65+
last_transaction = "{} ({})".format(utils.lookup(result, 'lastTransaction', 'transactionGroup', 'name'),
66+
utils.clean_time(utils.lookup(result, 'lastTransaction', 'modifyDate')))
67+
68+
table.add_row(['last_transaction', last_transaction])
6669
table.add_row(['billing', 'Hourly' if result['hourlyBillingFlag'] else'Monthly'])
6770

6871
vlan_table = formatting.Table(['type', 'number', 'id'])

SoftLayer/managers/hardware.py

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

0 commit comments

Comments
 (0)