Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make templating work with Jinja2 >= 3.0.0 #54

Merged
merged 1 commit into from
Dec 21, 2021

Conversation

stas-sbi
Copy link
Contributor

Without this change you'll see the following error:

TASK [infrastructure/johanmeiring.sftp-server : SFTP-Server | Correct ownership and permission of home directories] ************************************
fatal: [sftp-server]: FAILED! => 
  msg: 'template error while templating string: expected token '','', got ''integer''. String: {{ item.mode | default(0750) }}'

See pallets/jinja#1171

Without this change you'll see the following error:

    TASK [infrastructure/johanmeiring.sftp-server : SFTP-Server | Correct ownership and permission of home directories] ************************************
    fatal: [sftp-server]: FAILED! =>
      msg: 'template error while templating string: expected token '','', got ''integer''. String: {{ item.mode | default(0750) }}'

See pallets/jinja#1171
@giner giner force-pushed the make_it_work_with_jinja2_v3 branch from 19d80bb to 60c113f Compare May 21, 2021 06:18
@hmatheisen
Copy link

hmatheisen commented Aug 30, 2021

Is seems the Travis CI builds have failed for reasons unrelated to this change, It would be nice to try running them again as it makes this role unusable for now :(

@joystein
Copy link

joystein commented Dec 6, 2021

#57 , seems to be a duplicate of this.

@johanmeiring
Copy link
Owner

My sincere apologies for the delay with this. I'll be merging this PR, closing #57, and creating a new release, in the next few minutes.

@johanmeiring johanmeiring merged commit a74050b into johanmeiring:master Dec 21, 2021
Branlute pushed a commit to steamulo/ansible-sftp that referenced this pull request Jan 20, 2022
…2_v3

Make templating work with Jinja2 >= 3.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants