IcingaService: do not disable services twice

fixes #13017
This commit is contained in:
Thomas Gelf 2016-10-31 12:34:23 +00:00
parent 15f08170ec
commit 22802114ac
1 changed files with 1 additions and 1 deletions

View File

@ -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 {