mirror of https://github.com/Icinga/icinga2.git
Config sync: Only copy paths to prod which are actually there
Stored files may be removed by external sources.
This commit is contained in:
parent
db4cc13770
commit
08a47600be
|
@ -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.";
|
||||
|
||||
|
|
Loading…
Reference in New Issue