parent
15f08170ec
commit
22802114ac
|
@ -174,7 +174,7 @@ class IcingaService extends IcingaObject
|
||||||
{
|
{
|
||||||
$str = parent::toConfigString();
|
$str = parent::toConfigString();
|
||||||
|
|
||||||
if ($this->host_id && $this->getRelated('host')->isDisabled()) {
|
if (! $this->isDisabled() && $this->host_id && $this->getRelated('host')->isDisabled()) {
|
||||||
return "/* --- This services host has been disabled ---\n"
|
return "/* --- This services host has been disabled ---\n"
|
||||||
. $str . "*/\n";
|
. $str . "*/\n";
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue