summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 = []