Only import libvirt secret when nova is enabled

This fixes a small logical error, we only want to set a libvirt secret
if nova is enabled, not both cinder and nova.  This prevents a
deployment with cinder but not nova from being successful.

Change-Id: Ief83fe661cf1b2099af8131a7a206ffca3458dc7
This commit is contained in:
Jon Bernard 2018-03-20 12:40:58 -04:00
parent 41d575b2dc
commit c5c0adcc60

View File

@ -53,8 +53,7 @@ elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
echo_summary "Configuring Cinder for Ceph"
configure_ceph_cinder
fi
if is_ceph_enabled_for_service cinder || \
is_ceph_enabled_for_service nova; then
if is_ceph_enabled_for_service nova; then
# NOTE (leseb): the part below is a requirement
# to attach Ceph block devices
echo_summary "Configuring libvirt secret"