Skip to content

Commit

Permalink
Fix default_volume_type for Cinder multi backend
Browse files Browse the repository at this point in the history
The default_volume_type option doesn't support comma separated
arguments. We can only select one default volume type.
We have a variable that contains the default volume type, so we simply use it.

Closes-Bug: 1342569

Change-Id: Ibd080442f00f3d446ec374fc5906f0778d449007
Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
  • Loading branch information
Sébastien Han committed Jul 16, 2014
1 parent 5e93727 commit 7062b12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cinder
Expand Up @@ -246,13 +246,13 @@ function configure_cinder {
configure_cinder_backend_${BE_TYPE} ${BE_NAME}
fi
if [[ -z "$default_type" ]]; then
default_type=$BE_TYPE}
default_type=$BE_TYPE
fi
enabled_backends+=$BE_NAME,
done
iniset $CINDER_CONF DEFAULT enabled_backends ${enabled_backends%,*}
if [[ -n "$default_type" ]]; then
iniset $CINDER_CONF DEFAULT default_volume_type ${enabled_backends%,*}
iniset $CINDER_CONF DEFAULT default_volume_type ${default_type}
fi
fi

Expand Down

0 comments on commit 7062b12

Please sign in to comment.