From: Philippe Proulx Date: Tue, 15 Mar 2016 19:38:09 +0000 (-0400) Subject: Fix: config: entity type: check for struct type X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=86302721cce882ad2b9598e287c288579193775c;p=deliverable%2Fbarectf.git Fix: config: entity type: check for struct type Signed-off-by: Philippe Proulx --- 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)