From 22802114aca0d191d8bdf92424922816b1e9f3e2 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 31 Oct 2016 12:34:23 +0000 Subject: [PATCH] IcingaService: do not disable services twice fixes #13017 --- library/Director/Objects/IcingaService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Director/Objects/IcingaService.php b/library/Director/Objects/IcingaService.php index acc03339..c2a0f00f 100644 --- a/library/Director/Objects/IcingaService.php +++ b/library/Director/Objects/IcingaService.php @@ -174,7 +174,7 @@ class IcingaService extends IcingaObject { $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" . $str . "*/\n"; } else {