diff options
author | Guillaume Tucker <guillaume.tucker@collabora.com> | 2019-03-08 11:17:07 +0000 |
---|---|---|
committer | Guillaume Tucker <guillaume.tucker@collabora.com> | 2019-03-15 17:46:54 +0000 |
commit | 1ef06fa04447cfadc7091d46c98611380c635a94 (patch) | |
tree | f28718e2768b92e9c1b92453805484d37773e058 /kernelci | |
parent | 07ed4a9cda4b20c08b0a999ae9084e1242a7af59 (diff) |
kernelci.configs: fix case where a YAML dict is empty
In some cases it may be valid to list a YAML dictionary entry with no
key-value pairs. Deal with that situation in kernelci.configs by
defaulting to an empty Python dictionary.
Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Diffstat (limited to 'kernelci')
-rw-r--r-- | kernelci/configs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernelci/configs.py b/kernelci/configs.py index 99b9630..b493070 100644 --- a/kernelci/configs.py +++ b/kernelci/configs.py @@ -38,7 +38,7 @@ class YAMLObject(object): """ return { k: v for k, v in ((k, data.get(k)) for k in args) if v - } + } if data else dict() class Filter(object): |