From 8a896b14d284b89c425702b276890fb1ed96b9b2 Mon Sep 17 00:00:00 2001 From: Andy McCrae Date: Fri, 3 Feb 2017 16:49:15 +0000 Subject: [PATCH] NFS backend option "shares" should not be templated We specify the NFS settings inside the cinder_backends, but we shouldn't template out the "shares" configuration, since this is only for templating out the nfs_shares configuration file. Change-Id: I2d7fde9538726718e3ef620b4d56d7db487759bd --- templates/cinder.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/cinder.conf.j2 b/templates/cinder.conf.j2 index 7ac77dbd..c7eddfad 100644 --- a/templates/cinder.conf.j2 +++ b/templates/cinder.conf.j2 @@ -99,7 +99,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 != 'extra_volume_types' %} +{% for key, value in backend_section.1.items() if key not in ['extra_volume_types', 'shares'] %} {{ key }}={{ value }} {% endfor %}