From 429be2dd76a4f41c8eafed44b1b47852c8a72e36 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 26 Feb 2019 13:48:58 +0100 Subject: [PATCH] IcingaServiceSet: fix rendering of Sets attached.. ...to single Hosts fixes #1789 --- library/Director/Objects/IcingaServiceSet.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/Director/Objects/IcingaServiceSet.php b/library/Director/Objects/IcingaServiceSet.php index ddc1d6c0..017d77ba 100644 --- a/library/Director/Objects/IcingaServiceSet.php +++ b/library/Director/Objects/IcingaServiceSet.php @@ -295,7 +295,9 @@ class IcingaServiceSet extends IcingaObject implements ExportInterface if (in_array($host, $this->getBlacklistedHostnames($service))) { continue; } - $service->set('host_id', $this->get('host_id')); + $service->set('object_type', 'object'); + $service->set('use_var_overrides', 'y'); + $service->set('host_id', $hostId); } else { // Service set template without assign filter or host continue;