mirror of https://github.com/Icinga/icinga2.git
Don't write local-only objects to the state file.
This commit is contained in:
parent
a5046ae7bf
commit
ec0e319d8a
|
@ -375,6 +375,9 @@ void DynamicObject::DumpObjects(const String& filename)
|
|||
for (nt = tt->second.begin(); nt != tt->second.end(); nt++) {
|
||||
DynamicObject::Ptr object = nt->second;
|
||||
|
||||
if (object->IsLocal())
|
||||
continue;
|
||||
|
||||
Dictionary::Ptr persistentObject = boost::make_shared<Dictionary>();
|
||||
|
||||
persistentObject->Set("type", object->GetType());
|
||||
|
|
Loading…
Reference in New Issue