Error occurred when fetching sidebar data
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
Step 1. Fetch and check out the branch for this merge request
git fetch origin git checkout -b "fix/jinja2_version_up" "origin/fix/jinja2_version_up"
Step 2. Review the changes locally
Step 3. Merge the branch and fix any conflicts that come up
git fetch origin git checkout "origin/master" git merge --no-ff "fix/jinja2_version_up"
Step 4. Push the result of the merge to GitLab
git push origin "master"
Note that pushing to GitLab requires write access to this repository.
Tip: You can also checkout merge requests locally by following these guidelines.