Skip to content

Commit eaae689

Browse files
Merge pull request #1586 from edsonarios/issues1585
Add id in the result in the command bandwidth-pools
2 parents 3a206a8 + f03fdb5 commit eaae689

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

SoftLayer/CLI/account/bandwidth_pools.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def cli(env):
2020
items = manager.get_bandwidth_pools()
2121

2222
table = formatting.Table([
23+
"Id",
2324
"Pool Name",
2425
"Region",
2526
"Servers",
@@ -28,14 +29,14 @@ def cli(env):
2829
"Projected Usage"
2930
], title="Bandwidth Pools")
3031
table.align = 'l'
31-
3232
for item in items:
33+
id_bandwidth = item.get('id')
3334
name = item.get('name')
3435
region = utils.lookup(item, 'locationGroup', 'name')
3536
servers = manager.get_bandwidth_pool_counts(identifier=item.get('id'))
3637
allocation = "{} GB".format(item.get('totalBandwidthAllocated', 0))
3738
current = "{} GB".format(utils.lookup(item, 'billingCyclePublicBandwidthUsage', 'amountOut'))
3839
projected = "{} GB".format(item.get('projectedPublicBandwidthUsage', 0))
3940

40-
table.add_row([name, region, servers, allocation, current, projected])
41+
table.add_row([id_bandwidth, name, region, servers, allocation, current, projected])
4142
env.fout(table)

0 commit comments

Comments
 (0)