1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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

Fixes #7832
This commit is contained in:
James Cammarata 2014-07-31 14:01:44 -05:00
parent 1a90442f9b
commit 745b28072a

View file

@ -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():
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