]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Port Tintri driver to ABC driver model
authorSkyler Berg <sberg@tintri.com>
Thu, 9 Jul 2015 18:36:36 +0000 (11:36 -0700)
committerSkyler Berg <sberg@tintri.com>
Thu, 9 Jul 2015 18:42:59 +0000 (11:42 -0700)
The Tintri driver implements methods for some abstract classes not
inherited with NfsDriver. This patch makes the driver inherit from all
the classes that it implements.

Change-Id: I36c3ac5368e99e367e6541cec8198fa475f1dffe
Partially-implements: blueprint abc-driver-update

cinder/volume/drivers/tintri.py

index 25828c16e0040dce6d7413f47f66249aaad28041..7a74b63042aa943cc67be3d8d0cf8546c891d403 100644 (file)
@@ -33,6 +33,7 @@ from cinder import exception
 from cinder import utils
 from cinder.i18n import _, _LE, _LI, _LW
 from cinder.image import image_utils
+from cinder.volume import driver
 from cinder.volume.drivers import nfs
 
 LOG = logging.getLogger(__name__)
@@ -61,7 +62,11 @@ CONF = cfg.CONF
 CONF.register_opts(tintri_options)
 
 
-class TintriDriver(nfs.NfsDriver):
+class TintriDriver(driver.ManageableVD,
+                   driver.CloneableVD,
+                   driver.CloneableImageVD,
+                   driver.SnapshotVD,
+                   nfs.NfsDriver):
     """Base class for Tintri driver."""
 
     VENDOR = 'Tintri'