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
onlyif
` has different result for single condition and a list of this condition (only for undefined?)
#15351
Comments
We will definitely investigate this. Thanks for the report. |
@markuskramerIgitt I've also noticed that it's hard to debug onlyif lists as the logging doesn't tell you which condition failed (or I'm a numpty and don't know what I'm doing, quite possible). |
I've just tested the logic again to make sure I know whats going on and it's all looking ok on 2016.3.0
And here are the results (that all look good i.e. no bug):
|
I suspect this issue should be closed as it is looking fixed to me. |
Thanks! I'll go ahead and close this. If it's still an issue for you @markuskramerIgitt, please keep us posted! |
onlyif
accecpts a single condition or a list of conditions. (At least the compiler accepts both)In the first fragment
onlyif
has a list of one condition.In the second fragment
onlyif
has a single condition.The condition is undefined.
DESIRED BEHAVIOUR: the result of the two fragements is identical.
ACTUAL BEHAVIOUR: Saltstack decides that the list is always true, the single condition always false.
Daniel Jagszent suggested that the first fragment uses "wrong syntax"
https://groups.google.com/d/msg/salt-users/7DlOwfQaLcA/WfIWcFpJNSkJ
Should this be actually the case then:
DESIRED BEHAVIOUR: Saltstack rejects "wrong syntax"
ACTUAL BEHAVIOUR: Saltstack ignores "wrong syntax"
Disclaimer: I have only tested this for an undefined test, and for Windows. Someone should use a decidable test.
The text was updated successfully, but these errors were encountered: