projects
/
deliverable
/
barectf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7975012
)
Fix: config: entity type: check for struct type
author
Philippe Proulx
<eeppeliteloop@gmail.com>
Tue, 15 Mar 2016 19:38:09 +0000
(15:38 -0400)
committer
Philippe 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
patch
|
blob
|
blame
|
history
diff --git
a/barectf/config.py
b/barectf/config.py
index 2e3fee549f5bc50ab908ed510f244d00a052840d..ee86e78666af9145f53c9ffe0d3094cec5c8db5c 100644
(file)
--- 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)
This page took
0.024079 seconds
and
4
git commands to generate.