[icinga-checkins] icinga.org: icinga2/master: Add missing default import AST node for the application object

git at icinga.org git at icinga.org
Sun Aug 28 11:02:21 CEST 2016


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

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Sun Aug 28 11:00:27 2016 +0200

Add missing default import AST node for the application object

refs #12575

---

 lib/cli/daemonutility.cpp |    1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/cli/daemonutility.cpp b/lib/cli/daemonutility.cpp
index 07aaa38..5b0c514 100644
--- a/lib/cli/daemonutility.cpp
+++ b/lib/cli/daemonutility.cpp
@@ -149,6 +149,7 @@ bool DaemonUtility::ValidateConfigFiles(const std::vector<std::string>& configs,
 		ConfigItemBuilder::Ptr builder = new ConfigItemBuilder();
 		builder->SetType(appType);
 		builder->SetName("app");
+		builder->AddExpression(new ImportDefaultTemplatesExpression());
 		ConfigItem::Ptr item = builder->Compile();
 		item->Register();
 	}



More information about the icinga-checkins mailing list