mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Check for the numeric "all" value (-1) for the rule protocol
Fixes #7832
This commit is contained in:
@@ -253,7 +253,7 @@ def main():
|
||||
if target_group_created:
|
||||
changed = True
|
||||
|
||||
if rule['proto'] == 'all':
|
||||
if rule['proto'] in ('all', '-1', -1):
|
||||
rule['proto'] = -1
|
||||
rule['from_port'] = None
|
||||
rule['to_port'] = None
|
||||
@@ -293,7 +293,7 @@ def main():
|
||||
if target_group_created:
|
||||
changed = True
|
||||
|
||||
if rule['proto'] == 'all':
|
||||
if rule['proto'] in ('all', '-1', -1):
|
||||
rule['proto'] = -1
|
||||
rule['from_port'] = None
|
||||
rule['to_port'] = None
|
||||
|
||||
Reference in New Issue
Block a user