Skip to content

Fix cmd.run preconditions failing if cwd does not exist#55066

Closed
timbasel wants to merge 7 commits intosaltstack:masterfrom
timbasel:fix_cmd.run_precondition_cwd
Closed

Fix cmd.run preconditions failing if cwd does not exist#55066
timbasel wants to merge 7 commits intosaltstack:masterfrom
timbasel:fix_cmd.run_precondition_cwd

Conversation

@timbasel
Copy link

What does this PR do?

Add a check to precondition execution that set cwd to default if either not absolute or does not exist

What issues does this PR fix or reference?

Fix #45039

Tests written?

No

Question

Should this pull request be expanded to also check if the provided user in runas exists?

@timbasel timbasel requested a review from a team as a code owner October 22, 2019 19:27
@ghost ghost requested a review from dwoz October 22, 2019 19:27
@dwoz dwoz added the needs-testcase PR needs test cases written, or the issue is about a bug/feature that needs test cases label Dec 3, 2019
@Ch3LL Ch3LL removed the request for review from a team April 15, 2020 14:38
@sagetherage sagetherage added bug broken, incorrect, or confusing behavior Core relates to code central or existential to Salt severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around Magnesium Mg release after Na prior to Al labels Jun 15, 2020
@garethgreenaway
Copy link
Contributor

@timbasel Thanks for the PR. A recent change has pulled out the requisite code in individual state modules in favor of using the system wide requisites in the state system, making this change redundant. The original issue also seems to not longer be present, so I'm going to close this one out. Thanks again.

@sagetherage
Copy link
Contributor

here is the original PR that removed the requisite code: #55974

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug broken, incorrect, or confusing behavior Core relates to code central or existential to Salt Magnesium Mg release after Na prior to Al needs-testcase PR needs test cases written, or the issue is about a bug/feature that needs test cases severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cmd.run cwd should not be checked before preconditions (Regression?)

4 participants