mirror of https://github.com/Icinga/icinga2.git
ConfigType: Use ConfigItem::IsAbstract() to check if items are abstract.
This commit is contained in:
parent
6f51230a79
commit
4bb808e0fa
|
@ -18,9 +18,6 @@
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
type DynamicObject {
|
type DynamicObject {
|
||||||
%require "__abstract",
|
|
||||||
%attribute number "__abstract",
|
|
||||||
|
|
||||||
%require "__local",
|
%require "__local",
|
||||||
%attribute number "__local",
|
%attribute number "__local",
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ void ConfigType::ValidateItem(const ConfigItem::Ptr& item) const
|
||||||
Dictionary::Ptr attrs = item->Link();
|
Dictionary::Ptr attrs = item->Link();
|
||||||
|
|
||||||
/* Don't validate abstract items. */
|
/* Don't validate abstract items. */
|
||||||
if (attrs->Get("__abstract"))
|
if (item->IsAbstract())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
vector<String> locations;
|
vector<String> locations;
|
||||||
|
|
Loading…
Reference in New Issue