remove the use of iteritems

iteritems is a py2 callable and will break when using py3.

Change-Id: I1ff66bd998308c207c292ec0de196c48d758db96
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter 2017-08-02 15:11:50 -05:00
parent bffc93aadb
commit 3202eb1b56
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@
CLI_OPTIONS="{{ ((keystone_service_adminuri_insecure | bool) or (cinder_service_internaluri_insecure | bool)) | ternary('--insecure','') }}"
{{ cinder_bin }}/cinder qos-list | grep {{ item.name }} || \
{{ cinder_bin }}/cinder qos-create {{ item.name }}\
{% for k,v in item.options.iteritems() %} {{ k }}={{ v }}{% endfor %}
{% for k,v in item.options.items() %} {{ k }}={{ v }}{% endfor %}
args:
executable: /bin/bash
with_items: "{{ cinder_qos_specs }}"