commit | 2337ccc4cc13377f881632c7a34a7c9397449f78 | [log] [tgz] |
---|---|---|
author | Jenkins <jenkins@review.openstack.org> | Wed Jan 07 12:18:46 2015 +0000 |
committer | Gerrit Code Review <review@openstack.org> | Wed Jan 07 12:18:46 2015 +0000 |
tree | 1478ba9220d48538d9ee7eae600d6b954dcd7c30 | |
parent | d82a8c3e52dc379a0fe71fe92a390e7eca1c6cad [diff] | |
parent | 7629e8fc8f5e450a14683f22b72ba9220f187b19 [diff] |
Merge "Validate top level of the layout configuration, too"
diff --git a/zuul/layoutvalidator.py b/zuul/layoutvalidator.py index 6969653..5a32c76 100644 --- a/zuul/layoutvalidator.py +++ b/zuul/layoutvalidator.py
@@ -193,6 +193,9 @@ 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 = []