-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add webconfiguration settings management (module + state). #49399
Add webconfiguration settings management (module + state). #49399
Conversation
salt/modules/win_iis.py
Outdated
|
||
|
||
def set_webconfiguration_settings(name, settings): | ||
''' |
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.
Same thing here
salt/states/win_iis.py
Outdated
|
||
|
||
def webconfiguration_settings(name, settings=None): | ||
''' |
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.
Same thing here
salt/modules/win_iis.py
Outdated
''' | ||
prepared_settings = [] | ||
for setting in settings: | ||
match = re.search('Collection\[(\{.*\})\]', setting['name']) |
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.
This line is failing lint as well... Might need to add an r
here. Not sure how that would affect the regex though. You'll need to test.
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.
If it must be formatted like this, then you'll need to skip the lint test for this line by adding this to the end:
# pylint: disable=W1401
There should be two spaces between the end of the code and the #
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.
The backslashes here are not interpreted by Python in any way ( neither \[ nor \{ means something ). So it is safe to add the raw prefix. I tested it, it works.
@rallytime Could we get this in to Fluorine? It fixes a customer issue. |
@tlemarchand Great work! Thanks for the PR. |
What does this PR do?
Add webconfiguration settings management, inside win_iis module ( get and set webconfigurations ) and win_iis state ( define webconfigurations ).
This is necessary to manage all possible IIS configurations.
What issues does this PR fix or reference?
#48792
Tests written?
No
Commits signed with GPG?
No