[icinga-checkins] icinga.org: icinga2/master: Implement validateOnly flag for LoadConfigFiles ().

git at icinga.org git at icinga.org
Tue Feb 5 16:16:33 CET 2013


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

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Tue Feb  5 16:16:34 2013 +0100

Implement validateOnly flag for LoadConfigFiles().

---

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

diff --git a/icinga-app/icinga.cpp b/icinga-app/icinga.cpp
index 3547b54..3f5f978 100644
--- a/icinga-app/icinga.cpp
+++ b/icinga-app/icinga.cpp
@@ -83,6 +83,9 @@ static bool LoadConfigFiles(bool validateOnly)
 				}
 			}*/
 
+	if (validateOnly)
+		return true;
+
 	context.ActivateItems();
 
 	BOOST_FOREACH(const ConfigItem::WeakPtr& witem, g_ConfigItems) {





More information about the icinga-checkins mailing list