mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-22 13:14:32 +02:00
Implement validateOnly flag for LoadConfigFiles().
This commit is contained in:
parent
59f1d3ffc0
commit
a5a51a6123
@ -83,6 +83,9 @@ static bool LoadConfigFiles(bool validateOnly)
|
|||||||
}
|
}
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
|
if (validateOnly)
|
||||||
|
return true;
|
||||||
|
|
||||||
context.ActivateItems();
|
context.ActivateItems();
|
||||||
|
|
||||||
BOOST_FOREACH(const ConfigItem::WeakPtr& witem, g_ConfigItems) {
|
BOOST_FOREACH(const ConfigItem::WeakPtr& witem, g_ConfigItems) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user