Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions SoftLayer/CLI/firewall/detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from SoftLayer.CLI import environment
from SoftLayer.CLI import firewall
from SoftLayer.CLI import formatting
from SoftLayer import utils


@click.command()
Expand Down Expand Up @@ -41,9 +42,9 @@ def get_rules_table(rules):
rule['action'],
rule['protocol'],
rule['sourceIpAddress'],
rule['sourceIpSubnetMask'],
utils.lookup(rule, 'sourceIpSubnetMask'),
'%s:%s-%s' % (rule['destinationIpAddress'],
rule['destinationPortRangeStart'],
rule['destinationPortRangeEnd']),
rule['destinationIpSubnetMask']])
utils.lookup(rule, 'destinationIpSubnetMask')])
return table