mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-21 17:07:54 +02:00
IcingaHostGroup|IcingaService(Set): Fix legacy config file extension
refs #13049
This commit is contained in:
parent
fee8e7847d
commit
d4c3be0bf5
@ -88,7 +88,7 @@ class IcingaHostGroup extends IcingaObjectGroup
|
|||||||
$zone = $this->connection->getDefaultGlobalZoneName();
|
$zone = $this->connection->getDefaultGlobalZoneName();
|
||||||
}
|
}
|
||||||
return $config->configFile(
|
return $config->configFile(
|
||||||
'director/' . $zone . '/hostgroups'
|
'director/' . $zone . '/hostgroups', '.cfg'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -210,8 +210,10 @@ class IcingaService extends IcingaObject
|
|||||||
|
|
||||||
protected function legacyHostnameServicesFile($hostname, IcingaConfig $config)
|
protected function legacyHostnameServicesFile($hostname, IcingaConfig $config)
|
||||||
{
|
{
|
||||||
|
$host = IcingaHost::load($hostname, $this->getConnection());
|
||||||
return $config->configFile(
|
return $config->configFile(
|
||||||
'director/' . IcingaHost::load($hostname, $this->getConnection())->getRenderingZone($config) . '/service_apply'
|
'director/' . $host->getRenderingZone($config) . '/service_apply',
|
||||||
|
'.cfg'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -225,15 +225,18 @@ class IcingaServiceSet extends IcingaObject
|
|||||||
|
|
||||||
protected function legacyHostnameServicesFile($hostname, IcingaConfig $config)
|
protected function legacyHostnameServicesFile($hostname, IcingaConfig $config)
|
||||||
{
|
{
|
||||||
|
$host = IcingaHost::load($hostname, $this->getConnection());
|
||||||
return $config->configFile(
|
return $config->configFile(
|
||||||
'director/' . IcingaHost::load($hostname, $this->getConnection())->getRenderingZone($config) . '/servicesets'
|
'director/' . $host->getRenderingZone($config) . '/servicesets',
|
||||||
|
'.cfg'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function legacyRelatedHostFile(IcingaService $service, IcingaConfig $config)
|
protected function legacyRelatedHostFile(IcingaService $service, IcingaConfig $config)
|
||||||
{
|
{
|
||||||
return $config->configFile(
|
return $config->configFile(
|
||||||
'director/' . $service->getRelated('host')->getRenderingZone($config) . '/servicesets'
|
'director/' . $service->getRelated('host')->getRenderingZone($config) . '/servicesets',
|
||||||
|
'.cfg'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user