summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames E. Blair <jeblair@redhat.com>2017-10-18 15:53:32 -0700
committerJames E. Blair <jeblair@redhat.com>2017-10-18 15:56:21 -0700
commitaa62ecad86eedf4295bd0e1cf6afc24fc885835a (patch)
tree159342e921d765edb7ddd8adf000c7a9f31eba45
parent4122b0b8f0c5ba00020d2d4ae2b48825c2bf5240 (diff)
Fix error in job parser0.2.1
Notes
Notes (review): Code-Review+2: Clark Boylan <cboylan@sapwetik.org> Workflow+1: Clark Boylan <cboylan@sapwetik.org> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 18 Oct 2017 23:19:30 +0000 Reviewed-on: https://review.openstack.org/513201 Project: openstack-infra/zuul-sphinx Branch: refs/heads/master
-rw-r--r--doc/source/zuul.d/test.yaml8
-rw-r--r--zuul_sphinx/zuul.py2
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 @@
17 jobs: 17 jobs:
18 - test-autodoc 18 - test-autodoc
19 - example 19 - example
20 - does-not-exist-in-this-repo 20 - does-not-exist-in-this-repo:
21 required-projects:
22 - some-project
21 gate: 23 gate:
22 jobs: 24 jobs:
23 - example 25 - example
24 - does-not-exist-in-this-repo 26 - does-not-exist-in-this-repo:
27 required-projects:
28 - 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):
43 jobs = [] 43 jobs = []
44 for job in v['jobs']: 44 for job in v['jobs']:
45 if isinstance(job, dict): 45 if isinstance(job, dict):
46 job = list(dict.keys())[0] 46 job = list(job.keys())[0]
47 jobs.append(job) 47 jobs.append(job)
48 if jobs: 48 if jobs:
49 self.pipelines[k] = jobs 49 self.pipelines[k] = jobs