From aa62ecad86eedf4295bd0e1cf6afc24fc885835a Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Wed, 18 Oct 2017 15:53:32 -0700 Subject: [PATCH] Fix error in job parser Change-Id: Id806d3648ad7464a2e6d1ae1235061f48014a49a --- doc/source/zuul.d/test.yaml | 8 ++++++-- zuul_sphinx/zuul.py | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/doc/source/zuul.d/test.yaml b/doc/source/zuul.d/test.yaml index cf476ce..5f34716 100644 --- a/doc/source/zuul.d/test.yaml +++ b/doc/source/zuul.d/test.yaml @@ -17,8 +17,12 @@ jobs: - test-autodoc - example - - does-not-exist-in-this-repo + - does-not-exist-in-this-repo: + required-projects: + - some-project gate: jobs: - example - - does-not-exist-in-this-repo + - does-not-exist-in-this-repo: + required-projects: + - some-project diff --git a/zuul_sphinx/zuul.py b/zuul_sphinx/zuul.py index d0c4dec..95d69cb 100644 --- a/zuul_sphinx/zuul.py +++ b/zuul_sphinx/zuul.py @@ -43,7 +43,7 @@ class ProjectTemplate(object): jobs = [] for job in v['jobs']: if isinstance(job, dict): - job = list(dict.keys())[0] + job = list(job.keys())[0] jobs.append(job) if jobs: self.pipelines[k] = jobs