From 64f942bd708227180fac17ac1fc04af2e8689833 Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Wed, 2 Aug 2017 15:00:51 -0500 Subject: [PATCH] remove the use of iteritems iteritems is a py2 callable and will break when using py3. Change-Id: I033383caade1d7d734a2c965a0bf8f2da1b0d421 Signed-off-by: Kevin Carter --- .../templates/osa_interfaces_multinode.cfg.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/roles/bootstrap-host/templates/osa_interfaces_multinode.cfg.j2 b/tests/roles/bootstrap-host/templates/osa_interfaces_multinode.cfg.j2 index a055c438e8..c31c4a4346 100644 --- a/tests/roles/bootstrap-host/templates/osa_interfaces_multinode.cfg.j2 +++ b/tests/roles/bootstrap-host/templates/osa_interfaces_multinode.cfg.j2 @@ -1,5 +1,5 @@ {% if bootstrap_host_encapsulation_enabled | bool %} -{% for nic_name, nic_details in bootstrap_host_encapsulation_interfaces.iteritems() %} +{% for nic_name, nic_details in bootstrap_host_encapsulation_interfaces.items() %} # {{ nic_details.friendly_name }} auto {{ nic_name }} iface {{ nic_name }} inet manual @@ -10,7 +10,7 @@ iface {{ nic_name }} inet manual {% endfor %} {% endif %} -{%- for nic_name, nic_details in bootstrap_host_bridges_interfaces.iteritems() -%} +{%- for nic_name, nic_details in bootstrap_host_bridges_interfaces.items() -%} auto {{ nic_name }} iface {{ nic_name }} inet {{ nic_details.mode | default('static') }} bridge_stp off @@ -25,4 +25,4 @@ iface {{ nic_name }} inet {{ nic_details.mode | default('static') }} {%- if nic_details.state_change_scripts is defined %}{{ nic_details.state_change_scripts }} {% endif %} -{% endfor %} \ No newline at end of file +{% endfor %}