Skip to content
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

Merged
merged 7 commits into from
Sep 2, 2018
Merged

Add webconfiguration settings management (module + state). #49399

merged 7 commits into from
Sep 2, 2018

Conversation

tlemarchand
Copy link
Contributor

@tlemarchand tlemarchand commented Aug 29, 2018

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

@ghost ghost self-requested a review August 29, 2018 15:05
salt/modules/win_iis.py Outdated Show resolved Hide resolved
salt/modules/win_iis.py Show resolved Hide resolved


def set_webconfiguration_settings(name, settings):
'''
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing here



def webconfiguration_settings(name, settings=None):
'''
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing here

'''
prepared_settings = []
for setting in settings:
match = re.search('Collection\[(\{.*\})\]', setting['name'])
Copy link
Contributor

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.

Copy link
Contributor

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 #

Copy link
Contributor Author

@tlemarchand tlemarchand Aug 30, 2018

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.

@twangboy
Copy link
Contributor

@rallytime Could we get this in to Fluorine? It fixes a customer issue.

@twangboy
Copy link
Contributor

#48792

@twangboy
Copy link
Contributor

@tlemarchand Great work! Thanks for the PR.

salt/modules/win_iis.py Outdated Show resolved Hide resolved
@cachedout cachedout merged commit 2943a10 into saltstack:develop Sep 2, 2018
@Akm0d Akm0d mentioned this pull request Oct 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants