mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
SyncRule: initialize hasServiceSet
This commit is contained in:
parent
d2adc1b4ec
commit
58a64cee78
@ -262,6 +262,7 @@ class SyncRule extends DbObject
|
||||
if ($this->get('object_type') === 'service') {
|
||||
$hasHost = false;
|
||||
$hasObjectName = false;
|
||||
$hasServiceSet = false;
|
||||
|
||||
foreach ($this->getSyncProperties() as $key => $property) {
|
||||
if ($property->destination_field === 'host') {
|
||||
@ -284,8 +285,7 @@ class SyncRule extends DbObject
|
||||
);
|
||||
|
||||
$this->destinationKeyPattern = '${host}!${object_name}';
|
||||
}
|
||||
elseif ($hasServiceSet !== false && $hasObjectName !== false) {
|
||||
} elseif ($hasServiceSet !== false && $hasObjectName !== false) {
|
||||
$this->hasCombinedKey = true;
|
||||
$this->sourceKeyPattern = sprintf(
|
||||
'%s!%s',
|
||||
|
Loading…
x
Reference in New Issue
Block a user