Fix pylint error in DotHill drivers

The DotHill base driver accesses an instance variable before
it is defined. The way this is being done appears to be safe,
but it causes an E0203:access-member-before-definition pylint
error.

Trivial fix to make sure the variable is defined at init.

Change-Id: Ie5828dec2892e2cc94760c4a6e31445805c6c17f
This commit is contained in:
Sean McGinnis 2018-02-03 11:25:50 -06:00
parent b890b934f6
commit 030ec634ee
1 changed files with 1 additions and 0 deletions

View File

@ -62,6 +62,7 @@ class DotHillISCSIDriver(cinder.volume.driver.ISCSIDriver):
super(DotHillISCSIDriver, self).__init__(*args, **kwargs)
self.common = None
self.configuration.append_config_values(san.san_opts)
self.iscsi_ips = None
def _init_common(self):
return dothillcommon.DotHillCommon(self.configuration)