]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Port block_device driver to use new driver model
authorMarc Koderer <marc@koderer.com>
Tue, 3 Mar 2015 07:12:44 +0000 (08:12 +0100)
committerMarc Koderer <marc@koderer.com>
Mon, 4 May 2015 11:35:30 +0000 (13:35 +0200)
Use new ABCmeta driver model for block_device driver.

Change-Id: I8af975f58909352a105182a59ff777affec75e35
Implements: blueprint abc-driver-update

cinder/volume/drivers/block_device.py

index 9e76c1fee635c7b18eb5b1c49a6d3e8696dbe610..d046edb655b2fac1d9e15e6b8267f6d1f2016c49 100644 (file)
@@ -40,8 +40,9 @@ CONF = cfg.CONF
 CONF.register_opts(volume_opts)
 
 
-class BlockDeviceDriver(driver.VolumeDriver):
-    VERSION = '2.0.0'
+class BlockDeviceDriver(driver.BaseVD, driver.LocalVD, driver.CloneableVD,
+                        driver.CloneableImageVD, driver.TransferVD):
+    VERSION = '2.1.0'
 
     def __init__(self, *args, **kwargs):
         super(BlockDeviceDriver, self).__init__(*args, **kwargs)