You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@rhillmann: The problem with that is that templates don't have attributes, as far as Icinga is concerned they're unintelligible program code, here's an example that tries to visualize this issue:
template Host "tmpl" {
if () {
check_command = "x"
} else {
check_command = "y"
}
There's no way for Icinga to know what 'check_command' is until that piece of code is executed in the context of an object definition. In fact, that's a trivial example, really, it's entirely possible to dynamically set properties without Icinga even being able to tell which attribute you're changing (this[aname] = "...", where aname is a variable containing the attribute name).
I'm afraid there really is no way to tell which attributes a template modifies.
This issue has been migrated from Redmine: https://dev.icinga.com/issues/13311
Created by darmagan on 2016-11-24 13:22:07 +00:00
Assignee: (none)
Status: New
Target Version: (none)
Last Update: 2016-11-28 07:34:51 +00:00 (in Redmine)
Hello,
the icinga2 API ignores existing template objects if you want to modify there attributes.
It would be nice if querys like
were possible.
Regards
The text was updated successfully, but these errors were encountered: