Browse code

Fix an issue with setting tempest volume vendor_name with spaces

If the volume vendor has spaces in it, for example “Open Source”, we
need to have quotes around the uses of the variables or the behavior
will not be as expected.

Change-Id: Ie1e99b6d6de2313e5b5b5a5d3057c136c9b34601

Patrick East authored on 2014/10/23 08:22:47
Showing 1 changed files
... ...
@@ -372,7 +372,7 @@ function configure_tempest {
372 372
     fi
373 373
 
374 374
     if [ $TEMPEST_VOLUME_DRIVER != "default" -o \
375
-        $TEMPEST_VOLUME_VENDOR != $TEMPEST_DEFAULT_VOLUME_VENDOR ]; then
375
+        "$TEMPEST_VOLUME_VENDOR" != "$TEMPEST_DEFAULT_VOLUME_VENDOR" ]; then
376 376
         iniset $TEMPEST_CONFIG volume vendor_name "$TEMPEST_VOLUME_VENDOR"
377 377
     fi
378 378
     if [ $TEMPEST_VOLUME_DRIVER != "default" -o \