mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
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…
x
Reference in New Issue
Block a user