Skip to content

Commit 24f6a35

Browse files
author
Brian Flores
committed
fix observations
1 parent dd50060 commit 24f6a35

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

SoftLayer/CLI/firewall/detail.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,20 @@
1616
help="Display FortiGate username and FortiGate password to multi vlans.")
1717
@environment.pass_env
1818
def cli(env, identifier, credentials):
19-
"""Detail firewall."""
19+
"""Detail firewall.
20+
21+
EXAMPLES:
22+
23+
slcli firewall detail vs:12345
24+
25+
slcli firewall detail --credentials true multiVlan:456789
26+
"""
2027

2128
mgr = SoftLayer.FirewallManager(env.client)
2229

2330
firewall_type, firewall_id = firewall.parse_id(identifier)
2431

25-
if firewall_type == 'vs' or firewall_type == 'server' or firewall_type == 'vlan' or firewall_type == 'multiVlan':
32+
if firewall_type in ('vs', 'server', 'vlan', 'multiVlan'):
2633

2734
if firewall_type == 'vlan':
2835
_firewall = mgr.get_instance(firewall_id)

0 commit comments

Comments
 (0)