Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • slapos slapos
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 122
    • Merge requests 122
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • slaposslapos
  • Merge requests
  • !730

Closed
Created Apr 10, 2020 by Jérome Perrin@jeromeOwner
  • Report abuse
Report abuse

Update Jinja2 to fix wrong error reporting in templates

  • Overview 3
  • Commits 2
  • Pipelines 1
  • Changes 3

Error reporting is sometimes wrong, for example we have:

  File "parts/instance-apache-php/instance-apache-php.cfg.in", line 190, in top-level template code
    php-bin = {{ parameter_dict['apache-php-location'] }}/bin/php
UndefinedError: unicode object has no element 0

which should be:

  File "parts/instance-apache-php/instance-apache-php.cfg.in", line 105, in top-level template code
    url = {{ slapparameter_dict['database-list'][0] }}
UndefinedError: unicode object has no element 0

updating jinja like this displays the actual error.

This was a jinja issue https://github.com/pallets/jinja/issues/276 that was fixed since jinja 2.10.0

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: fix/jinja2_version_up
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7