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

Logrotate broken with Python3 #45

Open
mtsinc1 opened this issue Jun 10, 2019 · 0 comments
Open

Logrotate broken with Python3 #45

mtsinc1 opened this issue Jun 10, 2019 · 0 comments

Comments

@mtsinc1
Copy link

mtsinc1 commented Jun 10, 2019

Python2 goes end-of-life January 2020. Distro vendors have been scrambling to upgrade to Python3 and this appears to include the recent Ansible 2.8.0 release. A previously-functioning project using ansible-logrotate now fails because Python3 does not implement iteritems.

Change required - file logrotate/templates/logrotate.d.j2

FROM:
{%- for name, script in item.scripts.iteritems() -%}
TO:
{%- for name, script in item.scripts.items() | list -%}

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

No branches or pull requests

1 participant