mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-03 03:44:28 +02:00
parent
23b75fd30d
commit
ada9f634dd
@ -72,11 +72,11 @@ static bool LoadConfigFiles(bool validateOnly)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
context.LinkItems();
|
/* Don't link or validate if we have already encountered at least one error. */
|
||||||
|
if (!hasError) {
|
||||||
/* Don't validate if we have already encountered at least one error. */
|
context.LinkItems();
|
||||||
if (!hasError)
|
|
||||||
context.ValidateItems();
|
context.ValidateItems();
|
||||||
|
}
|
||||||
|
|
||||||
hasError = false;
|
hasError = false;
|
||||||
|
|
||||||
|
@ -34,6 +34,9 @@ ConfigCompilerContext::ConfigCompilerContext(void)
|
|||||||
|
|
||||||
void ConfigCompilerContext::AddItem(const ConfigItem::Ptr& item)
|
void ConfigCompilerContext::AddItem(const ConfigItem::Ptr& item)
|
||||||
{
|
{
|
||||||
|
Log(LogDebug, "config", "Adding item to compiler context: type=" +
|
||||||
|
item->GetType() + "; name=" + item->GetName());
|
||||||
|
|
||||||
m_Items.push_back(item);
|
m_Items.push_back(item);
|
||||||
m_ItemsMap[std::make_pair(item->GetType(), item->GetName())] = item;
|
m_ItemsMap[std::make_pair(item->GetType(), item->GetName())] = item;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user