Add support for ! in parameters (#25891)

Fixes #25684
This commit is contained in:
Matthias Bertschy 2017-08-30 21:26:29 +02:00 committed by ansibot
parent 72d977057f
commit 754ef34acb

View file

@ -365,7 +365,10 @@ def append_param(rule, param, flag, is_list):
append_param(rule, item, flag, False)
else:
if param is not None:
rule.extend([flag, param])
if param[0] == '!':
rule.extend(['!', flag, param[1:]])
else:
rule.extend([flag, param])
def append_tcp_flags(rule, param, flag):
if param: