IcingaServiceSet: fix rendering of Sets attached..

...to single Hosts

fixes #1789
This commit is contained in:
Thomas Gelf 2019-02-26 13:48:58 +01:00
parent 89d4af564e
commit 429be2dd76
1 changed files with 3 additions and 1 deletions

View File

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