Config sync: Only copy paths to prod which are actually there

Stored files may be removed by external sources.
This commit is contained in:
Michael Friedrich 2019-06-19 17:00:50 +02:00
parent db4cc13770
commit 08a47600be
1 changed files with 3 additions and 0 deletions

View File

@ -547,6 +547,9 @@ void ApiListener::TryActivateZonesStageCallback(const ProcessResult& pr,
// Copy all synced configuration files from stage to production.
for (const String& path : relativePaths) {
if (!Utility::PathExists(path))
continue;
Log(LogInformation, "ApiListener")
<< "Copying file '" << path << "' from config sync staging to production zones directory.";