From 1a798232ba96e958076cf4e407c94c403541f24b Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Fri, 9 Aug 2013 14:07:44 +0200 Subject: [PATCH] compat: fix customvar exclude --- lib/icinga/compatutility.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/icinga/compatutility.cpp b/lib/icinga/compatutility.cpp index 44c5a7022..df657e35b 100644 --- a/lib/icinga/compatutility.cpp +++ b/lib/icinga/compatutility.cpp @@ -478,8 +478,13 @@ Dictionary::Ptr CompatUtility::GetCustomVariableConfig(DynamicObject::Ptr const& Value value; BOOST_FOREACH(boost::tie(key, value), custom) { - if (key != "notes" && key != "action_url" && key != "notes_url" && - key != "icon_image" && key != "icon_image_alt" && key != "statusmap_image" && "2d_coords") + if (key == "notes" || + key == "action_url" || + key == "notes_url" || + key == "icon_image" || + key == "icon_image_alt" || + key == "statusmap_image" || + key == "2d_coords") continue; customvars->Set(key, value); -- 2.40.0