Comment 1 for bug 1967897

Revision history for this message
Benjamin FÜHRMANN (fuhrmannb) wrote :

Note that we have to also encode slashes manually, Jinja does not do it in `urlencode` method. See [related Jinja2 issue](https://github.com/pallets/jinja/issues/515).

Final Example:

```
[database]
connection = mysql+pymysql://{{ ironic_database_user }}:{{ ironic_database_password | urlencode | replace('/', '%2f') }}@{{ ironic_database_address }}/{{ ironic_database_name }}
```