]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
vmware: Remove deprecation warning from VC driver
authorVipin Balachandran <vbala@vmware.com>
Mon, 17 Mar 2014 21:01:42 +0000 (02:31 +0530)
committerVipin Balachandran <vbala@vmware.com>
Mon, 17 Mar 2014 21:12:16 +0000 (02:42 +0530)
The vCenter vmdk driver prints a deprecation warning for ESX vmdk driver.
This change removes that deprecation warning.

Change-Id: I90c00c08ae7b8e5507308de8d0bec32f8683a1d0
Closes-Bug: #1293960

cinder/volume/drivers/vmware/vmdk.py

index 5f85615273370345f86fda4671a587be1794a3ab..476d596f51d6a70527cf0bb08c58ec42ab75e80c 100644 (file)
@@ -1115,6 +1115,10 @@ class VMwareVcVmdkDriver(VMwareEsxVmdkDriver):
     # PBM is enabled only for VC versions 5.5 and above
     PBM_ENABLED_VC_VERSION = dist_version.LooseVersion('5.5')
 
+    def _do_deprecation_warning(self):
+        # no deprecation warning for vCenter vmdk driver
+        pass
+
     def __init__(self, *args, **kwargs):
         super(VMwareVcVmdkDriver, self).__init__(*args, **kwargs)
         self.configuration.append_config_values(spbm_opts)