]> granicus.if.org Git - icinga2/commitdiff
Fix Path to staged files 7259/head
authorJanne Heß <janne@hess.ooo>
Wed, 26 Jun 2019 00:04:06 +0000 (02:04 +0200)
committerJanne Heß <janne@hess.ooo>
Wed, 26 Jun 2019 00:04:06 +0000 (02:04 +0200)
The paths in the list are relative, not absolute to the stage directory.

lib/remote/apilistener-filesync.cpp

index f3d5a5d48b094c020f8f4cfb1f53435406a81b5b..979156bf90bff3ad74bb297cbbb804ebf54e057a 100644 (file)
@@ -547,7 +547,7 @@ void ApiListener::TryActivateZonesStageCallback(const ProcessResult& pr,
 
                // Copy all synced configuration files from stage to production.
                for (const String& path : relativePaths) {
-                       if (!Utility::PathExists(path))
+                       if (!Utility::PathExists(apiZonesStageDir + path))
                                continue;
 
                        Log(LogInformation, "ApiListener")