mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
Active packages: Don't try to fix broken config packages which are not cached yet
This commit is contained in:
parent
2bca7a5bb5
commit
502c43fb12
@ -1578,7 +1578,12 @@ void ApiListener::CheckApiPackageIntegrity()
|
||||
activeStage = ConfigPackageUtility::GetActiveStageFromFile(package);
|
||||
} catch (const std::exception& ex) {
|
||||
/* An error means that the stage is broken, try to repair it. */
|
||||
String activeStageCached = m_ActivePackageStages[package];
|
||||
auto it = m_ActivePackageStages.find(package);
|
||||
|
||||
if (it == m_ActivePackageStages.end())
|
||||
continue;
|
||||
|
||||
String activeStageCached = it->second;
|
||||
|
||||
Log(LogInformation, "ApiListener")
|
||||
<< "Repairing broken API config package '" << package
|
||||
|
Loading…
x
Reference in New Issue
Block a user