diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-01-07 12:18:46 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-01-07 12:18:46 +0000 |
commit | 2337ccc4cc13377f881632c7a34a7c9397449f78 (patch) | |
tree | 1478ba9220d48538d9ee7eae600d6b954dcd7c30 | |
parent | d82a8c3e52dc379a0fe71fe92a390e7eca1c6cad (diff) | |
parent | 7629e8fc8f5e450a14683f22b72ba9220f187b19 (diff) | |
download | zuul-2337ccc4cc13377f881632c7a34a7c9397449f78.tar.gz |
Merge "Validate top level of the layout configuration, too"
-rw-r--r-- | zuul/layoutvalidator.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/zuul/layoutvalidator.py b/zuul/layoutvalidator.py index 696965399..5a32c769e 100644 --- a/zuul/layoutvalidator.py +++ b/zuul/layoutvalidator.py @@ -193,6 +193,9 @@ class LayoutSchema(object): return parameters def getSchema(self, data): + if not isinstance(data, dict): + raise Exception("Malformed layout configuration: top-level type " + "should be a dictionary") pipelines = data.get('pipelines') if not pipelines: pipelines = [] |