-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[BUG] Include + exclude + override with a require results in "The following requisites were not found" #62082
Comments
This may be a case of #61121
What does this mean? What versions have you tested? |
|
Any news about this trouble ? We have the same problem here. |
@Wanick95 have you tested with 3005? |
Yes I have test it. Salt Version: Dependency Versions: System Versions: |
I think the problem is during the computing phase.
|
At a first glance, it looks like it shouldn't be too hard to not process "extend declarations" that are specified in sls files that are excluded. In |
Description
I have complex salt code that target some servers that include states and for some specific servers I need to override some states and exclude others. That's why the following code has is reduced to the simplest and might seem strange at 1st glance.
I think the bug is in the extend:test1 with a require because if you comment the require, the code works perfectly.
Steps to reproduce the behavior
/srv/salt/top.sls
file that called test1.sls and exclude.sls:/srv/exclude.sls
that exclude test2.sls:/srv/test1.sls
that include test2.sls:/srv/test2.sls
that extend test1 and require test2 in the same file:Expected behavior
The code must work. Indeed the test2.sls is excluded in exclude.sls (and exclude win agains an include) and the code failed because it search the id test2 (require test2 in test1 in the test2.sls) but this require is in test2 that is excluded in exclude.sls.
Versions Report
All versions are concerned
The text was updated successfully, but these errors were encountered: