mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-20 04:30:10 -03:30
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:
committed by
Kubernetes Prow Robot
parent
301a371efe
commit
7e4f4a96fc
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user