commit | a25922b9616f74f74049368e8f4e5de11b851921 | [log] [tgz] |
---|---|---|
author | Dean Troyer <dtroyer@gmail.com> | Thu Aug 28 09:29:47 2014 -0500 |
committer | Dean Troyer <dtroyer@gmail.com> | Thu Aug 28 09:29:51 2014 -0500 |
tree | 1eb49763bfaa4eb34b7163a609dbdedfca628631 | |
parent | 464d48ab32eabbd2106024bb019bd042bb479490 [diff] [blame] |
Fix regression in Cinder volume type creation The local-vars cleanup (Iedeafa15def1fa26d4ddcbc5f670129f66e38b9d) spanned (and missed) this fix (Ib35ffc09f6582354010ac8ca35da581ea508877a) for volume type creation. Change-Id: I2b95cbc946727d7708283eca0c07ba1eaddf5db8
diff --git a/lib/cinder b/lib/cinder index ce13b86..c4fe3c7 100644 --- a/lib/cinder +++ b/lib/cinder
@@ -247,8 +247,8 @@ if type configure_cinder_backend_${be_type} >/dev/null 2>&1; then configure_cinder_backend_${be_type} ${be_name} fi - if [[ -z "$default_type" ]]; then - default_name=$be_type + if [[ -z "$default_name" ]]; then + default_name=$be_name fi enabled_backends+=$be_name, done