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

Don't modify empty change #24986

Merged
merged 1 commit into from
Jun 29, 2015
Merged

Conversation

heewa
Copy link
Contributor

@heewa heewa commented Jun 26, 2015

During a pkg.install state, if there wasn't a change (like from an error), the "hold" logic tries to modify the change for a package it had held, but since there isn't one, a key error is raised, aborting the rest of the install logic, and showing the user an unhelpful code traceback.

This PR fixes this issue by leaving an empty change dict alone.

@justinta justinta added Core relates to code central or existential to Salt Medium Change labels Jun 26, 2015
@justinta
Copy link

@heewa Thanks for the PR!

@cachedout cachedout added Platform Relates to OS, containers, platform-based utilities like FS, system based apps and removed Core relates to code central or existential to Salt labels Jun 29, 2015
@cachedout
Copy link
Contributor

@jtand This should have the Platform label instead of Core, IMHO.`

thatch45 added a commit that referenced this pull request Jun 29, 2015
@thatch45 thatch45 merged commit 9cf8550 into saltstack:2015.5 Jun 29, 2015
@thatch45
Copy link
Contributor

Yes, this should have the platform label

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform Relates to OS, containers, platform-based utilities like FS, system based apps State-Module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants