]> granicus.if.org Git - icinga2/commitdiff
Don't write local-only objects to the state file.
authorGunnar Beutner <gunnar.beutner@netways.de>
Fri, 12 Oct 2012 08:16:03 +0000 (10:16 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Fri, 12 Oct 2012 08:16:03 +0000 (10:16 +0200)
lib/base/dynamicobject.cpp

index dde4510b2ae0a388cefe54ff8326500fa509f38f..9ee0f296051e92ad6d5cef19cb6d5a61412b5489 100644 (file)
@@ -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());