mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +02:00
IcingaConfig: do not re-deploy external objects
This commit is contained in:
parent
ccf3092b5d
commit
9413c8cdbd
@ -310,7 +310,9 @@ throw $e;
|
||||
$file = null;
|
||||
|
||||
foreach ($objects as $object) {
|
||||
if ($object->isTemplate()) {
|
||||
if ($object->isExternal()) {
|
||||
continue;
|
||||
} elseif ($object->isTemplate()) {
|
||||
$filename = strtolower($type) . '_templates';
|
||||
$zone = 'master';
|
||||
} else {
|
||||
|
@ -494,6 +494,12 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
||||
&& $this->object_type === 'template';
|
||||
}
|
||||
|
||||
public function isExternal()
|
||||
{
|
||||
return $this->hasProperty('object_type')
|
||||
&& $this->object_type === 'external_object';
|
||||
}
|
||||
|
||||
public function isApplyRule()
|
||||
{
|
||||
return $this->hasProperty('object_type')
|
||||
|
Loading…
x
Reference in New Issue
Block a user