]> granicus.if.org Git - icinga2/commitdiff
Fixed bug with invalid type in state files.
authorGunnar Beutner <gunnar.beutner@netways.de>
Thu, 17 Jan 2013 14:03:44 +0000 (15:03 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Thu, 17 Jan 2013 14:03:44 +0000 (15:03 +0100)
lib/base/dynamicobject.cpp

index 9298068a8a0964fc357c055ff24b2d235cce94a4..a30e61eb6ca874d24d7f4f1f4c309764053fea3f 100644 (file)
@@ -341,7 +341,7 @@ void DynamicObject::DumpObjects(const String& filename)
 
                        Dictionary::Ptr persistentObject = boost::make_shared<Dictionary>();
 
-                       persistentObject->Set("type", object->GetType());
+                       persistentObject->Set("type", object->GetType()->GetName());
                        persistentObject->Set("name", object->GetName());
 
                        int types = Attribute_Local | Attribute_Replicated;