Commit b9417dd
Add missing conditional for Update the go.mod file for no pr case
Without this conditional, the meta content provider is failing with
following error:
```
msg: |
2025-06-27 06:20:22.612671 | controller | The task includes an option with an undefined variable. The error was: 'operator_api_path' is undefined. 'operator_api_path' is undefined
2025-06-27 06:20:22.612685 | controller |
2025-06-27 06:20:22.612699 | controller | The error appears to be in '/home/zuul-worker/src/github.com/openstack-k8s-operators/ci-framework/roles/operator_build/tasks/build.yml': line 70, column 3, but may
2025-06-27 06:20:22.612713 | controller | be elsewhere in the file depending on the exact syntax problem.
2025-06-27 06:20:22.612740 | controller |
2025-06-27 06:20:22.612753 | controller | The offending line appears to be:
2025-06-27 06:20:22.612766 | controller |
2025-06-27 06:20:22.612779 | controller |
2025-06-27 06:20:22.612792 | controller | - name: "{{ operator.name }} - Update the go.mod file using latest commit if no PR is provided" # noqa: name[template]
2025-06-27 06:20:22.612805 | controller | ^ here
2025-06-27 06:20:22.612818 | controller | We could be wrong, but this one looks like it might be an issue with
2025-06-27 06:20:22.612830 | controller | missing quotes. Always quote template expression brackets when they
2025-06-27 06:20:22.612843 | controller | start a value. For instance:
2025-06-27 06:20:22.612856 | controller |
```
By adding the conditional fixes the issue.
Note: it also fixes the same conditional for other tasks.
Signed-off-by: Chandan Kumar <Chandan Kumar (raukadah)>1 parent 7fb4b62 commit b9417dd
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
0 commit comments