mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 03:09:11 +02:00
IcingaConfig::configFile(): allow custom suffix
This commit is contained in:
parent
d7c2e7dacd
commit
fc748ff80a
@ -317,9 +317,9 @@ continue;
|
||||
return $this;
|
||||
}
|
||||
|
||||
protected function configFile($name)
|
||||
protected function configFile($name, $suffix = '.conf')
|
||||
{
|
||||
$filename = $name . '.conf';
|
||||
$filename = $name . $suffix;
|
||||
if (! array_key_exists($filename, $this->files)) {
|
||||
$this->files[$filename] = new IcingaConfigFile();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user