Skip to content

Commit c90902f

Browse files
Ramkishor ChaladiRamkishor Chaladi
authored andcommitted
updated the code and added blank
1 parent cd463d9 commit c90902f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

SoftLayer/CLI/bandwidth/pools.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,8 @@ def cli(env):
5858

5959
deletion = utils.clean_time(item.get('endDate'))
6060

61+
if deletion == '':
62+
deletion = formatting.blank()
63+
6164
table.add_row([id_bandwidth, name, region, servers, allocation, current, projected, cost, deletion])
6265
env.fout(table)

SoftLayer/CLI/bandwidth/pools_detail.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ def cli(env, identifier):
2424
table.add_row(['Id', bandwidths['id']])
2525
table.add_row(['Name', bandwidths['name']])
2626
table.add_row(['Create Date', utils.clean_time(bandwidths.get('createDate'), '%Y-%m-%d')])
27-
table.add_row(['End Date', utils.clean_time(bandwidths.get('endDate'))])
27+
end_date = utils.clean_time(bandwidths.get('endDate'))
28+
if end_date == '':
29+
end_date = formatting.blank()
30+
table.add_row(['End Date', end_date])
31+
else:
32+
table.add_row(['End Date', utils.clean_time(bandwidths.get('endDate'))])
2833
current = f"{utils.lookup(bandwidths, 'billingCyclePublicBandwidthUsage', 'amountOut')} GB"
2934
if current is None:
3035
current = '-'

0 commit comments

Comments
 (0)