mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
IcingaCommand: correctly render notification cmds
This commit is contained in:
parent
839527a2e1
commit
9b731641c4
@ -56,6 +56,20 @@ class IcingaCommand extends IcingaObject
|
|||||||
return c::renderKeyValue('execute', $this->methods_execute);
|
return c::renderKeyValue('execute', $this->methods_execute);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function renderObjectHeader()
|
||||||
|
{
|
||||||
|
if ($this->getResolvedProperty('methods_execute') === 'PluginNotification') {
|
||||||
|
return sprintf(
|
||||||
|
"%s %s %s {\n",
|
||||||
|
$this->getObjectTypeName(),
|
||||||
|
'NotificationCommand',
|
||||||
|
c::renderString($this->getObjectName())
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
return parent::renderObjectHeader();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function mungeCommand($value)
|
public function mungeCommand($value)
|
||||||
{
|
{
|
||||||
if (is_array($value)) {
|
if (is_array($value)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user