mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 22:54:57 +02:00
Bugfix: Don't copy the enable_checks attribute to child services.
This commit is contained in:
parent
b74c2c8a68
commit
f9ea72ddb1
@ -219,10 +219,6 @@ static void CopyServiceAttributes(const Host::Ptr& host, TDict serviceDesc,
|
|||||||
if (!hostchecks.IsEmpty())
|
if (!hostchecks.IsEmpty())
|
||||||
builder->AddExpression("dependencies", OperatorPlus,
|
builder->AddExpression("dependencies", OperatorPlus,
|
||||||
Service::ResolveDependencies(host, hostchecks));
|
Service::ResolveDependencies(host, hostchecks));
|
||||||
|
|
||||||
Value enableChecks = serviceDesc->Get("enable_checks");
|
|
||||||
if (!enableChecks.IsEmpty())
|
|
||||||
builder->AddExpression("enable_checks", OperatorSet, enableChecks);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Host::ObjectCommittedHandler(const ConfigItem::Ptr& item)
|
void Host::ObjectCommittedHandler(const ConfigItem::Ptr& item)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user