From: Gunnar Beutner Date: Thu, 17 Jan 2013 14:03:44 +0000 (+0100) Subject: Fixed bug with invalid type in state files. X-Git-Tag: v0.0.2~710 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=747e3e7de81aa0a94a521e33c8ca0bc5521ec662;p=icinga2 Fixed bug with invalid type in state files. --- diff --git a/lib/base/dynamicobject.cpp b/lib/base/dynamicobject.cpp index 9298068a8..a30e61eb6 100644 --- a/lib/base/dynamicobject.cpp +++ b/lib/base/dynamicobject.cpp @@ -341,7 +341,7 @@ void DynamicObject::DumpObjects(const String& filename) Dictionary::Ptr persistentObject = boost::make_shared(); - persistentObject->Set("type", object->GetType()); + persistentObject->Set("type", object->GetType()->GetName()); persistentObject->Set("name", object->GetName()); int types = Attribute_Local | Attribute_Replicated;