Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[dev.icinga.com #10205] config checker reports wrong error on apply for rules #3428
This issue has been migrated from Redmine: https://dev.icinga.com/issues/10205
Created by arlecchino on 2015-09-23 16:02:55 +00:00
If the rule uses a Dictionary iterator syntax and the value is an array the reported error is:
Other way round:
I don't think this error reporting makes sense.
2015-09-24 06:30:03 +00:00 by (unknown) 0c10d64
2015-09-25 12:38:40 +00:00 by (unknown) 992e045
Updated by mfriedrich on 2015-09-23 16:14:35 +00:00
Please attach the configuration snippets and detailed error output in order to reproduce your description.
Updated by arlecchino on 2015-09-23 18:08:45 +00:00
This reports error:
At apply Service "reproduce" for (cfg => zone in host.vars.zones):
So what the error message wants to tell me?!
IMO you simply have twisted the 2 error messages.
Updated by gbeutner on 2015-09-24 06:28:41 +00:00
"for (cfg => zone in host.vars.zones" is a dictionary iterator, i.e. it expects host.vars.zones to be a dictionary and iterates over each key-value pair.
The problem here is that the error message is incorrect. It should be: "Dictionary iterator requires value to be a dictionary."