Fix iteration over backends config

Backend config is a dictionary and it's attempted to be iterated as dict,
however it was missing items() call.

Issue has been introduced with the patch [1]

[1] https://review.opendev.org/c/openstack/openstack-ansible-os_glance/+/901034

Change-Id: I0a6a96a70f05815871a499935a61af9993186edb
This commit is contained in:
Dmitriy Rabotyagov 2024-01-18 16:50:11 +01:00
parent e4acad2bb6
commit 2f4344550b

View File

@ -124,7 +124,7 @@ cinder_store_project_domain_name = {{ glance_service_project_domain_id }}
{% else %}
[{{ backend['name'] }}]
{% for key, value in backend.get('config', {}) %}
{% for key, value in backend.get('config', {}).items() %}
{{ key }} = {{ value }}
{% endfor %}