From: Gunnar Beutner Date: Sun, 10 Mar 2013 14:27:55 +0000 (+0100) Subject: Implement "Negate" header. X-Git-Tag: v0.0.2~293 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd6deeeee67049b881a1b52db68123a3a3a44fe2;p=icinga2 Implement "Negate" header. --- diff --git a/components/livestatus/query.cpp b/components/livestatus/query.cpp index 4821b4076..7c90b0470 100644 --- a/components/livestatus/query.cpp +++ b/components/livestatus/query.cpp @@ -113,6 +113,13 @@ Query::Query(const vector& 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(filter)); + } } }