From 86302721cce882ad2b9598e287c288579193775c Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Tue, 15 Mar 2016 15:38:09 -0400 Subject: [PATCH] Fix: config: entity type: check for struct type Signed-off-by: Philippe Proulx --- barectf/config.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/barectf/config.py b/barectf/config.py index 2e3fee5..ee86e78 100644 --- a/barectf/config.py +++ b/barectf/config.py @@ -1073,9 +1073,8 @@ class _MetadataTypesHistologyValidator: if t is None: return - # entity cannot be an array - if type(t) is metadata.Array: - raise ConfigError('cannot use an array here') + if type(t) is not metadata.Struct: + raise ConfigError('expecting a structure type') self._validate_type_histology(t) -- 2.34.1