From 030ec634ee7d55901b8fbad2a37bdd11243c098d Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Sat, 3 Feb 2018 11:25:50 -0600 Subject: [PATCH] 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 --- cinder/volume/drivers/dothill/dothill_iscsi.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cinder/volume/drivers/dothill/dothill_iscsi.py b/cinder/volume/drivers/dothill/dothill_iscsi.py index b297ffbed5f..574b17de82f 100644 --- a/cinder/volume/drivers/dothill/dothill_iscsi.py +++ b/cinder/volume/drivers/dothill/dothill_iscsi.py @@ -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)