From d8f6c76f6b680968a2bf3f8d46b3a7716c8e83b9 Mon Sep 17 00:00:00 2001
From: caoyuan <cao.yuan@99cloud.net>
Date: Wed, 3 Jan 2018 18:20:05 +0800
Subject: [PATCH] fix the tempest failure for external ceph

show_multiple_locations is missing for external ceph, and it will
cause tempest run failed.
it means the conditon for show_multiple_locations is
glance_backend_ceph but not enable_ceph, this patch it fix it.

Change-Id: I3c95c3b0a7e34639b376bdfd0205f3930b06e2cd
Closes-Bug: #1741022
Co-Authored-By: chenqiaomin <chen.qiaomin@99cloud.net>
---
 ansible/roles/glance/templates/glance-api.conf.j2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ansible/roles/glance/templates/glance-api.conf.j2 b/ansible/roles/glance/templates/glance-api.conf.j2
index 631b9c9975..ca251fb3fb 100644
--- a/ansible/roles/glance/templates/glance-api.conf.j2
+++ b/ansible/roles/glance/templates/glance-api.conf.j2
@@ -11,7 +11,7 @@ workers = {{ openstack_service_workers }}
 
 registry_host = {{ kolla_internal_fqdn }}
 
-{% if enable_ceph | bool %}
+{% if glance_backend_ceph | bool %}
 show_multiple_locations = True
 {% endif %}