Merge pull request #9276 from das-peter/patch-1

#9174 config migration fails with python error: jinja2.exceptions.UndefinedError: 'chart' is undefined
This commit is contained in:
Daniel Jiang 2019-11-08 14:20:53 +08:00 committed by GitHub
commit b8777a7cc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,9 +117,11 @@ notification:
# Maximum retry count for webhook job # Maximum retry count for webhook job
webhook_job_max_retry: 10 webhook_job_max_retry: 10
{% if chart is defined %}
chart: chart:
# Change the value of absolute_url to enabled can enable absolute url in chart # Change the value of absolute_url to enabled can enable absolute url in chart
absolute_url: {{ chart.absolute_url if chart.absolute_url == 'enabled' else 'disabled' }} absolute_url: {{ chart.absolute_url if chart.absolute_url == 'enabled' else 'disabled' }}
{% endif %}
# Log configurations # Log configurations
log: log: