mirror of https://github.com/Icinga/icinga2.git
Implement "Negate" header.
This commit is contained in:
parent
dc27ddaada
commit
fd6deeeee6
|
@ -113,6 +113,13 @@ Query::Query(const vector<String>& lines)
|
|||
}
|
||||
|
||||
filters.push_back(filter);
|
||||
} else if (header == "Negate") {
|
||||
if (!filters.empty()) {
|
||||
Filter::Ptr filter = filters.back();
|
||||
filters.pop_back();
|
||||
|
||||
filters.push_back(boost::make_shared<NegateFilter>(filter));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue