Skip to content

[develop] Allow the onlyif & unless requisites in a state file. - #45229

Merged
rallytime merged 5 commits into
saltstack:developfrom
garethgreenaway:30161_using_unless_onlyif_together
Jan 8, 2018
Merged

[develop] Allow the onlyif & unless requisites in a state file.#45229
rallytime merged 5 commits into
saltstack:developfrom
garethgreenaway:30161_using_unless_onlyif_together

Conversation

@garethgreenaway

Copy link
Copy Markdown
Contributor

What does this PR do?

Updates to state.py to allow the onlyif & unless requisites to both work when specified in a state file.

What issues does this PR fix or reference?

#30161

Previous Behavior

If both onlyif & unless were specified in a state file the unless requisites was ignored and only the onlyif requisites was used.

New Behavior

This change allows both to be used in a single state.

Tests written?

Yes

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.

@rallytime

Copy link
Copy Markdown
Contributor

@garethgreenaway
garethgreenaway force-pushed the 30161_using_unless_onlyif_together branch from 4c4a158 to f4a6bfd Compare January 2, 2018 16:05
@rallytime
rallytime requested a review from thatch45 January 2, 2018 16:48
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.

3 participants