Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
slapos slapos
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 119
    • Merge requests 119
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • 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
None
Milestone
None
Assign milestone
Time tracking
Source branch: fix/jinja2_version_up
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7