Jinja variable 'dict object' has no attribute 'iteritems'
MurzNN opened this issue · 2 comments
MurzNN commented
I trying to use this formula with simple pillar from example:
rsyslog:
client:
enabled: true
format:
name: TraditionalFormatWithPRI
template: '"%syslogpriority% %syslogfacility% %timestamp:::date-rfc3339% %HOSTNAME% %syslogtag%%msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\n"'
output:
file:
-/var/log/syslog:
filter: '*.*;auth,authpriv.none'
user: syslog
group: adm
createmode: 0640
umask: 0022
But got the error:
Data failed to compile:
----------
Rendering SLS 'base:rsyslog.client' failed: Jinja variable 'dict object' has no attribute 'iteritems'
Why this happens and how to fix it?
fpytloun commented
Hello, that's python3 incompatibility. It should be just items
. Please send MR with fix and I'll merge it.
bigjimlefou commented
Hi, I've submitted a pull request for this.