]> granicus.if.org Git - icinga2/commitdiff
Fix: Don't validate templates
authorGunnar Beutner <gunnar.beutner@netways.de>
Tue, 28 Oct 2014 11:20:20 +0000 (12:20 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Tue, 28 Oct 2014 11:20:35 +0000 (12:20 +0100)
refs #7458

lib/config/configitem.cpp

index 06bf024a5fb36d9fa915b6daf54f9b19f3d2b561..1cb27246b51fdbfbd85db487aab9c196e508ba0a 100644 (file)
@@ -259,7 +259,7 @@ ConfigItem::Ptr ConfigItem::GetObject(const String& type, const String& name)
 
 void ConfigItem::ValidateItem(void)
 {
-       if (m_Validated)
+       if (m_Validated || IsAbstract())
                return;
 
        ConfigType::Ptr ctype = ConfigType::GetByName(GetType());