mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-29 08:34:20 +02:00
parent
02c559eff9
commit
b3aa2eb0c8
@ -205,7 +205,7 @@ TimePeriod::Ptr Dependency::GetPeriod(void) const
|
|||||||
|
|
||||||
void Dependency::ValidateFilters(const String& location, const Dictionary::Ptr& attrs)
|
void Dependency::ValidateFilters(const String& location, const Dictionary::Ptr& attrs)
|
||||||
{
|
{
|
||||||
int sfilter = FilterArrayToInt(attrs->Get("state_filter"), 0);
|
int sfilter = FilterArrayToInt(attrs->Get("states"), 0);
|
||||||
|
|
||||||
if (attrs->Get("parent_service_name") == Empty && (sfilter & ~(StateFilterUp | StateFilterDown)) != 0) {
|
if (attrs->Get("parent_service_name") == Empty && (sfilter & ~(StateFilterUp | StateFilterDown)) != 0) {
|
||||||
ConfigCompilerContext::GetInstance()->AddMessage(true, "Validation failed for " +
|
ConfigCompilerContext::GetInstance()->AddMessage(true, "Validation failed for " +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user