]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Checks RET=NOT_FOUND after pkgos_inifile get when detecting default vg
authorThomas Goirand <thomas@goirand.fr>
Sat, 16 Mar 2013 06:07:39 +0000 (14:07 +0800)
committerThomas Goirand <thomas@goirand.fr>
Sat, 16 Mar 2013 06:07:39 +0000 (14:07 +0800)
debian/cinder-common.config.in

index 4dc16f22a2fac8dac0f8a304949b229f1ab08ac1..7c8c3f9678fe994a8c3fa7a092febcc511c319ab 100644 (file)
@@ -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