From 3dbaf0ad23a9a6dd0b2ecdf04077e4a3135eed56 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Sat, 16 Mar 2013 14:07:39 +0800 Subject: [PATCH] Checks RET=NOT_FOUND after pkgos_inifile get when detecting default vg Rewritten-From: fdbb4f943f1652f847f75423e3ef913338c4b822 --- xenial/debian/cinder-common.config.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xenial/debian/cinder-common.config.in b/xenial/debian/cinder-common.config.in index 4dc16f22a..7c8c3f967 100644 --- a/xenial/debian/cinder-common.config.in +++ b/xenial/debian/cinder-common.config.in @@ -30,7 +30,7 @@ pkgos_read_admin_creds ${CINDER_API} filter:authtoken cinder manage_cinder_enable pkgos_inifile get ${CINDER_CONF} DEFAULT volume_group -if [ -n "${RET}" ] ; then +if [ -n "${RET}" ] && [ ! "${RET}" = "NOT_FOUND" ] ; then db_set cinder/volume_group "${RET}" else db_get cinder/volume_group -- 2.45.2