IcingaConfig: no autoendpoint for existing ones
This commit is contained in:
parent
6d8dc41bab
commit
e2fad6eb79
|
@ -357,6 +357,7 @@ throw $e;
|
||||||
if ($host->object_type !== 'object') continue;
|
if ($host->object_type !== 'object') continue;
|
||||||
if ($host->getResolvedProperty('has_agent') !== 'y') continue;
|
if ($host->getResolvedProperty('has_agent') !== 'y') continue;
|
||||||
$name = $host->object_name;
|
$name = $host->object_name;
|
||||||
|
if (IcingaEndpoint::exists($name, $this->connection)) continue;
|
||||||
|
|
||||||
$props = array(
|
$props = array(
|
||||||
'object_name' => $name,
|
'object_name' => $name,
|
||||||
|
|
Loading…
Reference in New Issue