]> granicus.if.org Git - icinga2/commitdiff
compat: fix customvar exclude
authorMichael Friedrich <michael.friedrich@netways.de>
Fri, 9 Aug 2013 12:07:44 +0000 (14:07 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Fri, 9 Aug 2013 12:07:44 +0000 (14:07 +0200)
lib/icinga/compatutility.cpp

index 44c5a7022bd12b8e10ec39dca6f2baa3d49f33a5..df657e35bd0f382141def6bf6541c9d31785b76d 100644 (file)
@@ -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);