mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
Bugfix: Used incorrect variable for CompileFile() call.
This commit is contained in:
parent
c3a73dde1e
commit
d853bcb286
@ -137,11 +137,10 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
/* load config files */
|
/* load config files */
|
||||||
BOOST_FOREACH(const String& configPath, vm["config"].as<vector<String> >()) {
|
BOOST_FOREACH(const String& configPath, vm["config"].as<vector<String> >()) {
|
||||||
String configFile = argv[2];
|
|
||||||
vector<ConfigItem::Ptr> items;
|
vector<ConfigItem::Ptr> items;
|
||||||
vector<ConfigType::Ptr> types;
|
vector<ConfigType::Ptr> types;
|
||||||
|
|
||||||
ConfigCompiler::CompileFile(configFile, &items, &types);
|
ConfigCompiler::CompileFile(configPath, &items, &types);
|
||||||
|
|
||||||
Logger::Write(LogInformation, "icinga-app", "Registering config types...");
|
Logger::Write(LogInformation, "icinga-app", "Registering config types...");
|
||||||
BOOST_FOREACH(const ConfigType::Ptr& type, types) {
|
BOOST_FOREACH(const ConfigType::Ptr& type, types) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user