Replace iteritems() to items() in Jinja2 templates (#4437)

The iteritems() dictionary's method has been removed in Python3. Using
this method in Jinja2 templates limits the execution to Python2 which
will be deprecated in 2020[1]. This change replaces that method for
the items() method as it's suggested in the official website[2].

[1] https://pythonclock.org/
[2] https://docs.ansible.com/ansible/latest/user_guide/playbooks_python_version.html#dict-iteritems
This commit is contained in:
Victor Morales
2019-04-08 00:32:26 -07:00
committed by Kubernetes Prow Robot
parent 301a371efe
commit 7e4f4a96fc
4 changed files with 5 additions and 5 deletions

View File

@@ -66,7 +66,7 @@ loadBalancer:
{% if oci_security_lists is defined and oci_security_lists|length > 0 %}
# Optional specification of which security lists to modify per subnet. This does not apply if security list management is off.
securityLists:
{% for subnet_ocid, list_ocid in oci_security_lists.iteritems() %}
{% for subnet_ocid, list_ocid in oci_security_lists.items() %}
{{ subnet_ocid }}: {{ list_ocid }}
{% endfor %}
{% endif %}