Skip to content

Commit 332f300

Browse files
committed
#1222 changing slcli lb list to display the name instead of the address
1 parent 1b6f6a2 commit 332f300

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

SoftLayer/CLI/loadbal/list.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ def location_sort(location):
3030
def generate_lbaas_table(lbaas):
3131
"""Takes a list of SoftLayer_Network_LBaaS_LoadBalancer and makes a table"""
3232
table = formatting.Table([
33-
'Id', 'Location', 'Address', 'Description', 'Public', 'Create Date', 'Members', 'Listeners'
33+
'Id', 'Location', 'Name', 'Description', 'Public', 'Create Date', 'Members', 'Listeners'
3434
], title="IBM Cloud LoadBalancer")
3535

36-
table.align['Address'] = 'l'
36+
table.align['Name'] = 'l'
3737
table.align['Description'] = 'l'
3838
table.align['Location'] = 'l'
3939
for this_lb in sorted(lbaas, key=location_sort):
4040
table.add_row([
4141
this_lb.get('id'),
4242
utils.lookup(this_lb, 'datacenter', 'longName'),
43-
this_lb.get('address'),
43+
this_lb.get('name'),
4444
this_lb.get('description'),
4545
'Yes' if this_lb.get('isPublic', 1) == 1 else 'No',
4646
utils.clean_time(this_lb.get('createDate')),

0 commit comments

Comments
 (0)