diff --git a/templates/cinder.conf.j2 b/templates/cinder.conf.j2 index ee51731c..cba061b5 100644 --- a/templates/cinder.conf.j2 +++ b/templates/cinder.conf.j2 @@ -95,7 +95,7 @@ enabled_backends={% for backend in cinder_backends|dictsort %}{{ backend.0 }}{% # All given backend(s) {% for backend_section in cinder_backends|dictsort %} [{{ backend_section.0 }}] -{% for key, value in backend_section.1.items() if key not in ['extra_volume_types', 'shares'] %} +{% for key, value in (backend_section.1 | dictsort) if key not in ['extra_volume_types', 'shares'] %} {{ key }}={{ value }} {% endfor %}