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

Backport #37262 to 2016.11 #39088

Merged
merged 1 commit into from
Feb 1, 2017
Merged

Backport #37262 to 2016.11 #39088

merged 1 commit into from
Feb 1, 2017

Conversation

lomeroe
Copy link
Contributor

@lomeroe lomeroe commented Jan 31, 2017

What does this PR do?

Backport #37262

What issues does this PR fix or reference?

#38761

Previous Behavior

Policy file paths were not verified for exists, which could lead to exceptions when attempting to write policy data.
decimal/longDecimal types with storeAsText set could throw an exception due to data conversion normally used to store decimal/longDecimal values in the registry.pol file
an exception would be thrown when no startup/shutdown script INI file exists.

New Behavior

policy file paths are verified for existence before attempting to open/edit
data conversion on storeAsText admx policies is properly handled
startup/shutdown script ini files are verified to exist before attempting to read

Tests written?

No

Please review Salt's Contributing Guide for best practices.

…gDecimal element object

handle scenario that gpedit has not been run on a system (Machine and User GroupPolicy sub-folders do not exist)
handle scenario that startup/shutdown script policy file does not exist
@lomeroe lomeroe changed the title Backport #37262 Backport #37262 to 2016.11 Jan 31, 2017
@rallytime rallytime merged commit 9dccb9f into saltstack:2016.11 Feb 1, 2017
@rallytime
Copy link
Contributor

Thanks @lomeroe!

gitebra pushed a commit to gitebra/salt that referenced this pull request Feb 2, 2017
* upstream/develop: (37 commits)
  MANY dunder variable fixes for proxies + proxy keepalive from @mirceaulinic (saltstack#38829)
  Missing colon
  Fixing a weird edge case when using salt syndics and targetting via pillar.  Without this fix the master of masters ends up in an infinite loop since the data returned from the minions is differently structured than if a sync was not in use.
  correct checking of policy_class to compare with lower() version of the specified string (saltstack#39084)
  Backport saltstack#38779 to 2016.11 (saltstack#39089)
  update adml text search to use 'starts-with' as some policies text has trailing spaces (saltstack#39090)
  correctly handle scenario when "storeAsText" is True on a decimal/longDecimal element object (saltstack#39088)
  use the pillar kwarg explicitely
  add ability to override pillar data during state.sls_id run.
  [Bugfix] Fix state x509.crl_managed
  Check if data['return'] is dict type
  add debug logging for batch vars
  Don't fail test if data is empty
  Account for trimmed value in 'salt -d' output
  Run test_valid_docs in batches
  Update primary bonding option in rh_ip.py (saltstack#39069)
  Update primary bonding option in debian_ip.py (saltstack#39068)
  Add a bunch of missing doc module references
  Move fileclient tests to tests/integration/fileserver/fileclient_test.py (saltstack#39081)
  _in_range_inclusive class method incorrectly called isinstance
  ...
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.

None yet

2 participants