mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-08-16 07:18:09 +02:00
IcingaNotification: deal with missing vars
This commit is contained in:
parent
ccc3e510a6
commit
881eba7298
@ -119,10 +119,13 @@ class IcingaNotification extends IcingaObject implements ExportInterface
|
||||
. c::renderKeyOperatorValue($property, '+=', "service.vars$varSuffix", $indent . ' ')
|
||||
. "$indent} else {\n"
|
||||
. $this->getHostSnippet($indent . ' ')
|
||||
. c::renderKeyOperatorValue($property, '+=', "host.vars$varSuffix", $indent . ' ')
|
||||
. "$indent if (host.vars$varSuffix) { "
|
||||
. c::renderKeyOperatorValue($property, '+=', "host.vars$varSuffix }", '')
|
||||
. "$indent}\n";
|
||||
} elseif ($objectType === 'host') {
|
||||
return $this->getHostSnippet() . c::renderKeyOperatorValue($property, '+=', "host.vars$varSuffix");
|
||||
return $this->getHostSnippet()
|
||||
. "{$indent}if (host.vars$varSuffix) { "
|
||||
. c::renderKeyOperatorValue($property, '+=', "host.vars$varSuffix }");
|
||||
}
|
||||
|
||||
return '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user