Skip to content

Commit bbb60de

Browse files
caberoscaberos
authored andcommitted
fix team code review comments
1 parent 5aabf25 commit bbb60de

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

SoftLayer/CLI/order/cancelation.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from SoftLayer.CLI import environment
77
from SoftLayer.CLI import formatting
88
from SoftLayer.managers import ordering
9+
from SoftLayer import utils
910

1011

1112
@click.command(cls=SLCommand)
@@ -14,16 +15,14 @@ def cli(env):
1415
"""List all account cancelations"""
1516
table = formatting.Table([
1617
'Case Number', 'Items', 'Created', 'Status', 'Requested by'])
17-
table.align['Name'] = 'l'
18-
table.align['Package Name'] = 'r'
19-
table.align['Package Id'] = 'l'
2018

2119
manager = ordering.OrderingManager(env.client)
2220
cancelations = manager.get_all_cancelation()
2321

2422
for item in cancelations:
2523
table.add_row([item.get('ticketId'), item.get('itemCount'),
26-
item.get('createDate'),
24+
utils.clean_time(item.get('createDate'),
25+
in_format='%Y-%m-%dT%H:%M:%S', out_format='%Y-%m-%d %H:%M'),
2726
item['status']['name'],
2827
item['user']['firstName'] + ' ' + item['user']['lastName']
2928
])

0 commit comments

Comments
 (0)