mirror of https://github.com/Icinga/icinga2.git
Fixed bug with invalid type in state files.
This commit is contained in:
parent
ea115a2c8c
commit
747e3e7de8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue