]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Lenovo driver fix access to common opts
authorWalter A. Boring IV <walter.boring@hp.com>
Fri, 11 Sep 2015 18:35:19 +0000 (18:35 +0000)
committerWalter A. Boring IV <walter.boring@hp.com>
Fri, 11 Sep 2015 18:35:19 +0000 (18:35 +0000)
This patch fixes access to the lenovo_common options.
They were recently renamed from common_opt to common_opts,
but the drivers weren't updated.

Change-Id: I63583394d58cb8fc791787df35ed04d30113fafe
Partial-Bug: 1494877

cinder/volume/drivers/lenovo/lenovo_fc.py
cinder/volume/drivers/lenovo/lenovo_iscsi.py

index aa33bf4a1e30b342260cd5279b5da86b2ad82bc5..79573eecb0d2490a477f7a9c44a6afdd183fbc15 100644 (file)
@@ -30,7 +30,7 @@ class LenovoFCDriver(dothill_fc.DotHillFCDriver):
 
     def __init__(self, *args, **kwargs):
         super(LenovoFCDriver, self).__init__(*args, **kwargs)
-        self.configuration.append_config_values(lenovo_common.common_opt)
+        self.configuration.append_config_values(lenovo_common.common_opts)
 
     def _init_common(self):
         return lenovo_common.LenovoCommon(self.configuration)
index 0fb99a8ba7129a15620c93f7b108c94b0b534537..e4387b2b4ac35d791937455de40ca5438daf78a8 100644 (file)
@@ -30,8 +30,8 @@ class LenovoISCSIDriver(dothill_iscsi.DotHillISCSIDriver):
 
     def __init__(self, *args, **kwargs):
         super(LenovoISCSIDriver, self).__init__(*args, **kwargs)
-        self.configuration.append_config_values(lenovo_common.common_opt)
-        self.configuration.append_config_values(lenovo_common.iscsi_opt)
+        self.configuration.append_config_values(lenovo_common.common_opts)
+        self.configuration.append_config_values(lenovo_common.iscsi_opts)
         self.iscsi_ips = self.configuration.lenovo_iscsi_ips
 
     def _init_common(self):