Skip to content

Fixes to requisites when prerequired state fails - #62449

Merged
Ch3LL merged 2 commits into
saltstack:masterfrom
garethgreenaway:62408_onchanges_prereq_fails
Aug 18, 2022
Merged

Fixes to requisites when prerequired state fails#62449
Ch3LL merged 2 commits into
saltstack:masterfrom
garethgreenaway:62408_onchanges_prereq_fails

Conversation

@garethgreenaway

@garethgreenaway garethgreenaway commented Aug 9, 2022

Copy link
Copy Markdown
Contributor

What does this PR do?

When using preq on a state, the prereq state will first be run with test=True to determine if there are changes. When there are changes, the state with the prereq option will be run prior to the prereq state. If this state fails then the prereq state will not run and the state output uses the test=True run. However, the proposed changes are included for the prereq state are included from the test=True run. We should pull those out as there weren't actually changes since the prereq state did not run.

What issues does this PR fix or reference?

Fixes: #62408

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

…test=True to determine if there are changes. When there are changes, the state with the prereq option will be run prior to the prereq state. If this state fails then the prereq state will not run and the state output uses the test=True run. However, the proposed changes are included for the prereq state are included from the test=True run. We should pull those out as there weren't actually changes since the prereq state did not run.
@garethgreenaway
garethgreenaway requested a review from a team as a code owner August 9, 2022 22:02
@garethgreenaway
garethgreenaway requested review from Ch3LL and removed request for a team August 9, 2022 22:02
@Ch3LL
Ch3LL requested a review from whytewolf August 10, 2022 19:45
@Ch3LL Ch3LL added the Sulfur v3006.0 release code name and version label Aug 10, 2022
@Ch3LL
Ch3LL merged commit f02851e into saltstack:master Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Sulfur v3006.0 release code name and version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] onchanges is firing the requiring state when required is also prereq by a failing third state

3 participants