New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support match-sets in iptables module #29718
Conversation
Sweet! Let's see what the test run has to say and hopefully we can get this in today. Nice work here, @thusoy |
@@ -220,6 +220,17 @@ def maybe_add_negation(arg): | |||
rule.append('--name {0}'.format(kwargs['name'])) | |||
del kwargs['match'] | |||
|
|||
if 'match-set' in kwargs: | |||
if isinstance(kwargs['match-set'], basestring): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change this to if isinstance(kwargs['match-set'], six.string_types):
and add from salt.ext import six
at the top.
Based on work by @l13t in saltstack#29426. Added tests and fixed incorrect appending of the built rule. Closes saltstack#29423.
@cachedout Sure, fixed. |
Support match-sets in iptables module
Great! Thank you @thusoy |
Need in 2015.8 |
Based on work by @l13t in #29426.
Added tests and fixed incorrect appending of the built rule.
Closes #29423 .