mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 22:54:57 +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);
|
activeStage = ConfigPackageUtility::GetActiveStageFromFile(package);
|
||||||
} catch (const std::exception& ex) {
|
} catch (const std::exception& ex) {
|
||||||
/* An error means that the stage is broken, try to repair it. */
|
/* 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")
|
Log(LogInformation, "ApiListener")
|
||||||
<< "Repairing broken API config package '" << package
|
<< "Repairing broken API config package '" << package
|
||||||
|
Loading…
x
Reference in New Issue
Block a user