Fix: config: entity type: check for struct type
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 15 Mar 2016 19:38:09 +0000 (15:38 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 18 Mar 2016 21:54:59 +0000 (17:54 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
barectf/config.py

index 2e3fee549f5bc50ab908ed510f244d00a052840d..ee86e78666af9145f53c9ffe0d3094cec5c8db5c 100644 (file)
@@ -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)
 
This page took 0.025307 seconds and 4 git commands to generate.