mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
IcingaService: Don't even try to render service_set related services
refs #12891
This commit is contained in:
parent
1a51e55563
commit
31520a7d21
@ -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 '';
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user