Commit 745b2807 by James Cammarata

Check for the numeric "all" value (-1) for the rule protocol

Fixes #7832
parent 1a90442f
...@@ -253,7 +253,7 @@ def main(): ...@@ -253,7 +253,7 @@ def main():
if target_group_created: if target_group_created:
changed = True changed = True
if rule['proto'] == 'all': if rule['proto'] in ('all', '-1', -1):
rule['proto'] = -1 rule['proto'] = -1
rule['from_port'] = None rule['from_port'] = None
rule['to_port'] = None rule['to_port'] = None
...@@ -293,7 +293,7 @@ def main(): ...@@ -293,7 +293,7 @@ def main():
if target_group_created: if target_group_created:
changed = True changed = True
if rule['proto'] == 'all': if rule['proto'] in ('all', '-1', -1):
rule['proto'] = -1 rule['proto'] = -1
rule['from_port'] = None rule['from_port'] = None
rule['to_port'] = None rule['to_port'] = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment