Skip to content

Commit

Permalink
Merge pull request #9276 from das-peter/patch-1
Browse files Browse the repository at this point in the history
#9174 config migration fails with python error: jinja2.exceptions.UndefinedError: 'chart' is undefined
  • Loading branch information
Daniel Jiang committed Nov 8, 2019
2 parents 9929780 + d964bf5 commit b8777a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/migration/cfg/migrator_1_9_0/harbor.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,11 @@ notification:
# Maximum retry count for webhook job
webhook_job_max_retry: 10

{% if chart is defined %}
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' }}
{% endif %}

# Log configurations
log:
Expand Down Expand Up @@ -265,4 +267,4 @@ proxy:
- core
- jobservice
- clair
{% endif %}
{% endif %}

0 comments on commit b8777a7

Please sign in to comment.