From 52869508c81957f441128419c9ae7396715127be Mon Sep 17 00:00:00 2001 From: Vipin Balachandran Date: Tue, 18 Mar 2014 02:31:42 +0530 Subject: [PATCH] vmware: Remove deprecation warning from VC driver 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cinder/volume/drivers/vmware/vmdk.py b/cinder/volume/drivers/vmware/vmdk.py index 5f8561527..476d596f5 100644 --- a/cinder/volume/drivers/vmware/vmdk.py +++ b/cinder/volume/drivers/vmware/vmdk.py @@ -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) -- 2.45.2