IcingaConfig: no autoendpoint for existing ones

This commit is contained in:
Thomas Gelf 2015-12-18 11:37:11 +01:00
parent 6d8dc41bab
commit e2fad6eb79
1 changed files with 1 additions and 0 deletions

View File

@ -357,6 +357,7 @@ throw $e;
if ($host->object_type !== 'object') continue;
if ($host->getResolvedProperty('has_agent') !== 'y') continue;
$name = $host->object_name;
if (IcingaEndpoint::exists($name, $this->connection)) continue;
$props = array(
'object_name' => $name,