IcingaService: Don't even try to render service_set related services

refs #12891
This commit is contained in:
Markus Frosch 2016-11-07 16:04:37 +01:00
parent 1a51e55563
commit 31520a7d21

View File

@ -177,7 +177,10 @@ class IcingaService extends IcingaObject
public function renderToLegacyConfig(IcingaConfig $config)
{
if ($this->isApplyRule()) {
if ($this->get('service_set_id') !== null) {
return;
}
else if ($this->isApplyRule()) {
$this->renderLegacyApplyToConfig($config);
} else {
parent::renderToLegacyConfig($config);
@ -214,7 +217,7 @@ class IcingaService extends IcingaObject
public function toLegacyConfigString()
{
if ($this->get('service_set_id')) {
if ($this->get('service_set_id') !== null) {
return '';
}