]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fixes Opt type of use_multipath_for_image_xfer
authorZhongyue Luo <zhongyue.nah@intel.com>
Wed, 17 Jul 2013 05:36:27 +0000 (14:36 +0900)
committerZhongyue Luo <zhongyue.nah@intel.com>
Wed, 17 Jul 2013 05:39:15 +0000 (14:39 +0900)
Changed use_multipath_for_image_xfer from StrOpt to BoolOpt

Change-Id: Id02ba23b233d348885250ccb8c14fcf04667adec

cinder/volume/driver.py

index 25cc0a7286360d9d278dca46df8825e567218c4a..9764eb7fc1cd5f392515c0bb82f32f77825d0a50 100644 (file)
@@ -59,10 +59,10 @@ volume_opts = [
     cfg.StrOpt('volume_backend_name',
                default=None,
                help='The backend name for a given driver implementation'),
-    cfg.StrOpt('use_multipath_for_image_xfer',
-               default=False,
-               help='Do we attach/detach volumes in cinder using multipath '
-                    'for volume to image and image to volume transfers?'), ]
+    cfg.BoolOpt('use_multipath_for_image_xfer',
+                default=False,
+                help='Do we attach/detach volumes in cinder using multipath '
+                     'for volume to image and image to volume transfers?'), ]
 
 CONF = cfg.CONF
 CONF.register_opts(volume_opts)