Tintri: Fix config option access

Issue was casued by following commit
1f62a411f4

Change-Id: Ic94a74f4ec324ba12b4282ad6ce221194b033645
This commit is contained in:
apoorvad 2017-07-10 13:16:14 -07:00
parent 4689591080
commit ce48757041
1 changed files with 2 additions and 4 deletions

View File

@ -110,11 +110,9 @@ class TintriDriver(driver.ManageableVD,
self._hostname = getattr(self.configuration, 'tintri_server_hostname')
self._username = getattr(self.configuration, 'tintri_server_username')
self._password = getattr(self.configuration, 'tintri_server_password')
self._api_version = getattr(self.configuration, 'tintri_api_version',
CONF.tintri_api_version)
self._api_version = getattr(self.configuration, 'tintri_api_version')
self._image_cache_expiry = getattr(self.configuration,
'tintri_image_cache_expiry_days',
CONF.tintri_image_cache_expiry_days)
'tintri_image_cache_expiry_days')
def get_pool(self, volume):
"""Returns pool name where volume resides.