-
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
commenting a section breaks salt without a proper error message #6544
Comments
I think this may have been fixed by this commit: #6525 @FlorianLudwig can you test against git develop? |
I think this is just the fault of an improper top.sls. Can you paste your whole top.sls? I'm seeing a dictionary key that is set to None. Then when we iterate through, we expect a list there, and try to iterate over it. |
But.....it did have an error message, right? You would just like an error message that was more informative? (Not trying to be difficult, just trying to ascertain exactly what you're looking for) |
@basepi no, i mean there is no error message. There is a traceback on the minion - but running salt highstate does return exactly nothing. |
Oh, well, that changes everything. I assumed we were returning that traceback or at least reporting that state compilation failed on the CLI. Should be an easy fix. Thanks, and sorry I misunderstood. |
Handle state declarations not formed as a list, Fix #6544
@basepi Maybe that is a bug worth on its own? So that tracebacks get send back to the master in case something went wrong. |
Well the key is that we don't want to do a global try-except. We have a list of errors which we send back to the master (which is what I used to fix this issue). We just need to be vigilant for further holes in our error-checking. |
Adding:
to your top.sls will break salt. Running salt commands will give you no output (not even warnings or errors!). Running the minion with -l debug will bring up:
The text was updated successfully, but these errors were encountered: