-
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
win_lgpo - additional delvals fixes and string value fix #56569
Conversation
@lomeroe Need to address the test failures (lint, docs, and pre-commit). And it probably needs a rebase... |
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.
any chance you can follow up on @twangboy 's comments here? #56569 (comment)
7050232
to
575075c
Compare
@lomeroe I rebased and resolved some conflicts here... would you mind making sure I didn't mess this up? |
correct issue with ';' in text data
f8de739
to
5b91abc
Compare
@twangboy still looks okay to me, thanks for cleaning this up |
What does this PR do?
Ports fixes from #56060 to other places where the delvals regex was searched.
Corrects an issue where a string value with a semicolon in it would only show the first value in the setting
Adds testing of policy returned from lgpo.get for each ADMX policy test
What issues does this PR fix or reference?
#56062
Previous Behavior
Some delvals items would show "**delvals" as the configuration instead of "Disabled"
Items with a semicolon in them (such as the "Enter fully qualified server names separated by semicolons" of "Point and Print Restrictions") would only show the entry up to the semicolon - subsequent runs of lgpo may then reset the value to the shortened string.
New Behavior
Delval items correctly display the policy setting in lgpo.get
Items with a semicolon show all entries
Tests written?
Yes
Commits signed with GPG?
No
Please review Salt's Contributing Guide for best practices.
See GitHub's page on GPG signing for more information about signing commits with GPG.