[icinga-checkins] icinga.org: icinga2/master: Bugfix: Used incorrect variable for CompileFile () call.

git at icinga.org git at icinga.org
Sun Feb 3 00:03:36 CET 2013


Module: icinga2
Branch: master
Commit: d853bcb2869bd6796f6fce90c42bb602adfdd94c
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=d853bcb2869bd6796f6fce90c42bb602adfdd94c

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Sun Feb  3 00:02:08 2013 +0100

Bugfix: Used incorrect variable for CompileFile() call.

---

 icinga-app/icinga.cpp |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/icinga-app/icinga.cpp b/icinga-app/icinga.cpp
index b2d6623..670a633 100644
--- a/icinga-app/icinga.cpp
+++ b/icinga-app/icinga.cpp
@@ -137,11 +137,10 @@ int main(int argc, char **argv)
 
 		/* load config files */
 		BOOST_FOREACH(const String& configPath, vm["config"].as<vector<String> >()) {
-			String configFile = argv[2];
 			vector<ConfigItem::Ptr> items;
 			vector<ConfigType::Ptr> types;
-		
-			ConfigCompiler::CompileFile(configFile, &items, &types);
+
+			ConfigCompiler::CompileFile(configPath, &items, &types);
 
 			Logger::Write(LogInformation, "icinga-app", "Registering config types...");
 			BOOST_FOREACH(const ConfigType::Ptr& type, types) {





More information about the icinga-checkins mailing list