diff options
author | Thomas Haller <thaller@redhat.com> | 2021-05-26 22:19:44 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2021-05-26 22:39:33 +0200 |
commit | fb64935597e1dd3b36a8f045cb948590b716c6fb (patch) | |
tree | 3584ea91715d26f641bd766deaf2fbdcafa5e415 /.gitlab-ci/ci.template | |
parent | 7e581a0303e501827766292211ae193ca321fb6f (diff) | |
download | NetworkManager-fb64935597e1dd3b36a8f045cb948590b716c6fb.tar.gz |
gitlab-ci: fix error evaluating "distro.always" in ci.template
...
File "/usr/local/lib/python3.9/site-packages/jinja2/environment.py", line 1361, in generate
yield self.environment.handle_exception()
File "/usr/local/lib/python3.9/site-packages/jinja2/environment.py", line 925, in handle_exception
raise rewrite_traceback_stack(source=source)
File ".gitlab-ci/ci.template", line 178, in top-level template code
{% if not version in distro.always and (distro.name != pages_build.name or version != pages_build.version) %}
jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'always'
Diffstat (limited to '.gitlab-ci/ci.template')
-rw-r--r-- | .gitlab-ci/ci.template | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitlab-ci/ci.template b/.gitlab-ci/ci.template index f195f2c981..ee28a32b07 100644 --- a/.gitlab-ci/ci.template +++ b/.gitlab-ci/ci.template @@ -175,7 +175,7 @@ t_{{distro.name}}:{{version}}: {% endif %} needs: - "{{distro.name}}:{{version}}@container-prep" -{% if not version in distro.always and (distro.name != pages_build.name or version != pages_build.version) %} +{% if not version in distro.get('always', []) and (distro.name != pages_build.name or version != pages_build.version) %} when: manual {% endif %} {% endfor %} |