From 8de5d4fcb91b3eb6cfb44bc066f0b0d0dc724aa3 Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Tue, 7 Mar 2017 16:48:08 +0000 Subject: [PATCH] Check for rbd as a default & optional glance back-end Currently only the default back-end is checked. This patch ensures that both the default and additional beck-ends are checked. Change-Id: I0bc50a03bc6ca6939bd842a197c383bd5ced7bd2 Closes-Bug: #1670556 --- playbooks/os-glance-install.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/os-glance-install.yml b/playbooks/os-glance-install.yml index 2af565a24a..ce6d86c0d3 100644 --- a/playbooks/os-glance-install.yml +++ b/playbooks/os-glance-install.yml @@ -73,7 +73,7 @@ openstack_service_venv_bin: "{{ glance_bin }}" when: - inventory_hostname in groups['glance_api'] - - (glance_default_store | default('none') | lower == 'rbd') + - "{{ 'rbd' in [glance_default_store | default('none')] + glance_additional_stores | default([]) }}" tags: - ceph - role: "openstack_openrc"