parent
7655ad451a
commit
4c978db3d0
|
@ -35,7 +35,7 @@ class IcingaConfig
|
||||||
|
|
||||||
protected $generationTime;
|
protected $generationTime;
|
||||||
|
|
||||||
protected $configFormat = 'v2';
|
protected $configFormat;
|
||||||
|
|
||||||
public static $table = 'director_generated_config';
|
public static $table = 'director_generated_config';
|
||||||
|
|
||||||
|
@ -46,6 +46,7 @@ class IcingaConfig
|
||||||
|
|
||||||
$this->connection = $connection;
|
$this->connection = $connection;
|
||||||
$this->db = $connection->getDbAdapter();
|
$this->db = $connection->getDbAdapter();
|
||||||
|
$this->configFormat = $this->connection->getSetting('config_format', 'v2');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getSize()
|
public function getSize()
|
||||||
|
|
|
@ -1151,6 +1151,10 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
||||||
|
|
||||||
public function renderToConfig(IcingaConfig $config)
|
public function renderToConfig(IcingaConfig $config)
|
||||||
{
|
{
|
||||||
|
if ($config->isLegacy()) {
|
||||||
|
return $this->renderToLegacyConfig($config);
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->isExternal()) {
|
if ($this->isExternal()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue