]> granicus.if.org Git - icinga2/commitdiff
objects.cache: Add support for the "notes" attribute.
authorGunnar Beutner <gunnar.beutner@netways.de>
Mon, 1 Jul 2013 11:51:00 +0000 (13:51 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Mon, 1 Jul 2013 11:51:00 +0000 (13:51 +0200)
components/compat/compatcomponent.cpp

index 0f13e4e8b4f20752b6378b8bce5d609ee36ebf96..dd4570dd0024e646f816d03f57c754537a23fe5c 100644 (file)
@@ -518,8 +518,8 @@ void CompatComponent::DumpCustomAttributes(std::ostream& fp, const DynamicObject
        BOOST_FOREACH(boost::tie(key, value), custom) {
                fp << "\t";
 
-               if (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" && "2d_coords")
                        fp << "_";
 
                fp << key << "\t" << Convert::ToString(value) << "\n";