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

Change merge-if-exists logic to properly report changes #34337

Merged
merged 1 commit into from
Jun 28, 2016

Conversation

clinta
Copy link
Contributor

@clinta clinta commented Jun 28, 2016

What does this PR do?

Changes the merge-if-exists logic to use a simple dict.update() and properly reports no changes if the content does not need to be changed.

Previous Behavior

merge-if-exists would report changes on every run, whether or not changes were necessary.

New Behavior

Uses a simple dict.update to compare the serialized data before and after applying the changes and only reports changes and writes to the file if the dicts are not equal.

Tests written?

No

Please review Salt's Contributing Guide for best practices.

@cachedout cachedout merged commit 81547f4 into saltstack:2016.3 Jun 28, 2016
@clinta clinta deleted the serialize-merge branch January 17, 2017 13:37
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.

2 participants