fix/notification-command-inherited-fields-missing refs #2286#2764
fix/notification-command-inherited-fields-missing refs #2286#2764moreamazingnick wants to merge 6 commits intoIcinga:masterfrom
Conversation
|
seems to be more complicated since the var resolver doesnt involve inheritance from a notification command. but the inheritance works |
|
If we patch protected function eventuallyGetResolvedCommandVar(IcingaObject $object, $varName) ind DIrectorDatafield the resolver works works fine. @Thomas-Gelf Please tell me if I should prepare another merge request, or if this inheritance behaviour is not a bug but a feature |
|
@moreamazingnick can you please reset your branch to master and reapply your change and then do a force push? @raviks789 please check this PR. |
|
@lippserd I am not sure I understand the issue and why this change is required. It would nice if there are screenshots of the issue or steps to reproduce the issue. |
|
@raviks789 without the patch:
with the patch:
|
I think there is some confusion here. When the template created for To create the notification command object. You have to navigate to Hence, this change which is trying to inherit the custom vars of the notification command template in a notification object is not necessary. |
|
If I create a host or service template and import a command the template shows me all the fields the command has to offer. best regards |
Icinga director has different relations for Checks and Notifications but references the same db-table
for checks: check_command
for notifications: command
IcingaObjectfield loader only checks relation check_command