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