Skip to content

Commit 66bc9ad

Browse files
author
caberos
committed
Fix to Christopher code review comments
1 parent aece618 commit 66bc9ad

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

SoftLayer/CLI/firewall/detail.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ def cli(env, identifier):
2525
table.align['name'] = 'r'
2626
table.align['value'] = 'l'
2727

28-
table.add_row(['id', result['id']])
29-
table.add_row(['primaryIpAddress', result['primaryIpAddress']])
30-
table.add_row(['datacenter', result['datacenter']['longName']])
31-
table.add_row(['networkVlan', result['networkVlan']['name']])
32-
table.add_row(['networkVlaniD', result['networkVlan']['id']])
28+
table.add_row(['id', utils.lookup(result, 'id')])
29+
table.add_row(['primaryIpAddress', utils.lookup(result, 'primaryIpAddress')])
30+
table.add_row(['datacenter', utils.lookup(result, 'datacenter', 'longName')])
31+
table.add_row(['networkVlan', utils.lookup(result, 'networkVlan', 'name')])
32+
table.add_row(['networkVlaniD', utils.lookup(result, 'networkVlan', 'id')])
3333

3434
if firewall_type == 'vlan':
3535
rules = mgr.get_dedicated_fwl_rules(firewall_id)

0 commit comments

Comments
 (0)