From d21a606008296680157fe8c89b99fd9eb87d513c Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Fri, 18 Mar 2016 16:13:13 -0400 Subject: [PATCH] config: null $include means no inclusions Signed-off-by: Philippe Proulx --- barectf/config.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/barectf/config.py b/barectf/config.py index 794492e..152169e 100644 --- a/barectf/config.py +++ b/barectf/config.py @@ -2417,9 +2417,13 @@ class _YamlConfigParser: return None def _get_include_paths(self, include_node): + if include_node is None: + return [] + if _is_str_prop(include_node): return [include_node] - elif _is_array_prop(include_node): + + if _is_array_prop(include_node): for include_path in include_node: if not _is_str_prop(include_path): raise ConfigError('invalid include property: expecting array of strings') -- 2.34.1