Browse Source

Fix error in job parser

Change-Id: Id806d3648ad7464a2e6d1ae1235061f48014a49a
James E. Blair 1 year ago
parent
commit
aa62ecad86
2 changed files with 7 additions and 3 deletions
  1. 6
    2
      doc/source/zuul.d/test.yaml
  2. 1
    1
      zuul_sphinx/zuul.py

+ 6
- 2
doc/source/zuul.d/test.yaml View File

@@ -17,8 +17,12 @@
17 17
       jobs:
18 18
         - test-autodoc
19 19
         - example
20
-        - does-not-exist-in-this-repo
20
+        - does-not-exist-in-this-repo:
21
+            required-projects:
22
+              - some-project
21 23
     gate:
22 24
       jobs:
23 25
         - example
24
-        - does-not-exist-in-this-repo
26
+        - does-not-exist-in-this-repo:
27
+            required-projects:
28
+              - some-project

+ 1
- 1
zuul_sphinx/zuul.py View File

@@ -43,7 +43,7 @@ class ProjectTemplate(object):
43 43
             jobs = []
44 44
             for job in v['jobs']:
45 45
                 if isinstance(job, dict):
46
-                    job = list(dict.keys())[0]
46
+                    job = list(job.keys())[0]
47 47
                 jobs.append(job)
48 48
             if jobs:
49 49
                 self.pipelines[k] = jobs

Loading…
Cancel
Save