]> granicus.if.org Git - icinga2/commitdiff
Ignore the .timestamp file when determining whether the zone config has changed ...
authorGunnar Beutner <gunnar@beutner.name>
Tue, 26 Jan 2016 14:42:54 +0000 (15:42 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Tue, 26 Jan 2016 14:46:03 +0000 (15:46 +0100)
refs #11014

lib/remote/apilistener-filesync.cpp

index 32620ea2925c4e3acd678721dc085f0e49bf23ad..66906f3c3503ff0d3e28acd2fae554cc7d4ee0aa 100644 (file)
@@ -105,11 +105,9 @@ bool ApiListener::UpdateConfigDir(const ConfigDirInformation& oldConfigInfo, con
        {
                ObjectLock olock(newConfig);
                BOOST_FOREACH(const Dictionary::Pair& kv, newConfig) {
-                       if (Utility::Match("*/.timestamp", kv.first))
-                               continue;
-
                        if (oldConfig->Get(kv.first) != kv.second) {
-                               configChange = true;
+                               if (!Utility::Match("*/.timestamp", kv.first))
+                                       configChange = true;
 
                                String path = configDir + "/" + kv.first;
                                Log(LogInformation, "ApiListener")