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

fixes to state.py in 2015.8 #30978

Conversation

garethgreenaway
Copy link
Contributor

The functions in the state module that return a retcode when something goes wrong, eg. a 1 or a 2, do not return a 0 when things go the way they're supposed to go. With the recent changes to the scheduler to ensure that the retcode is returned this is problematic and results in exceptions when a state function is run from the schedule. This simple fix ensures a default retcode of 0 exists, it is then override in the _set_retcode function if there is an issue with the run. #30472

…g goes wrong, eg. a 1 or a 2, do not return a 0 when things go the way they're supposed to go. With the recent changes to the scheduler to ensure that the retcode is returned this is problematic and results in exceptions when a state function is run from the schedule. This simple fix ensures a default retcode of 0 exists, it is then override in the _set_retcode function if there is an issue with the run
cachedout pushed a commit that referenced this pull request Feb 8, 2016
…no_default_retcode

fixes to state.py in 2015.8
@cachedout cachedout merged commit de215bd into saltstack:2015.8 Feb 8, 2016
@cachedout
Copy link
Contributor

Thanks as always, @garethgreenaway

@sjorge
Copy link
Contributor

sjorge commented Feb 9, 2016

Did this get forward merged into develop and 2016.3?

@cachedout
Copy link
Contributor

It will get forward merged into develop. 2016.3 is frozen.

@sjorge
Copy link
Contributor

sjorge commented Feb 9, 2016

So it will make the next point release I take it then?

@cachedout
Copy link
Contributor

Yes.

@anlutro
Copy link
Contributor

anlutro commented Feb 19, 2016

Is this not a bugfix? I can't see it in the git log for 2015.8.7.

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

4 participants