summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-01-07 12:18:46 +0000
committerGerrit Code Review <review@openstack.org>2015-01-07 12:18:46 +0000
commit2337ccc4cc13377f881632c7a34a7c9397449f78 (patch)
tree1478ba9220d48538d9ee7eae600d6b954dcd7c30
parentd82a8c3e52dc379a0fe71fe92a390e7eca1c6cad (diff)
parent7629e8fc8f5e450a14683f22b72ba9220f187b19 (diff)
downloadzuul-2337ccc4cc13377f881632c7a34a7c9397449f78.tar.gz
Merge "Validate top level of the layout configuration, too"
-rw-r--r--zuul/layoutvalidator.py3
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 = []