]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix indentation errors in drivers
authorEric Harney <eharney@redhat.com>
Mon, 14 Oct 2013 17:37:25 +0000 (13:37 -0400)
committerEric Harney <eharney@redhat.com>
Mon, 14 Oct 2013 17:53:57 +0000 (13:53 -0400)
Just some pylint fixes.

Change-Id: I1f851726a7c8285884121da097be574c447fa39c

cinder/volume/drivers/eqlx.py
cinder/volume/drivers/solidfire.py

index 27ce6842b8210939fd0444e375c85fc344f99242..74d952c5baf7dd03684f894469b444fd10a42e80 100644 (file)
@@ -215,8 +215,8 @@ class DellEQLSanISCSIDriver(SanISCSIDriver):
                 LOG.error(_("Error running SSH command: %s") % command)
 
     def _eql_execute(self, *args, **kwargs):
-            return self._run_ssh(
-                args, attempts=self.configuration.eqlx_cli_max_retries)
+        return self._run_ssh(
+            args, attempts=self.configuration.eqlx_cli_max_retries)
 
     def _get_volume_data(self, lines):
         prefix = 'iSCSI target name is '
index cbe09c11bbbe65f913371a565ef2d1c7bab6e6a1..c82a01fdb8c8cb94801216d5cd34625545d2704b 100644 (file)
@@ -90,12 +90,12 @@ class SolidFireDriver(SanISCSIDriver):
     GB = math.pow(2, 30)
 
     def __init__(self, *args, **kwargs):
-            super(SolidFireDriver, self).__init__(*args, **kwargs)
-            self.configuration.append_config_values(sf_opts)
-            try:
-                self._update_cluster_status()
-            except exception.SolidFireAPIException:
-                pass
+        super(SolidFireDriver, self).__init__(*args, **kwargs)
+        self.configuration.append_config_values(sf_opts)
+        try:
+            self._update_cluster_status()
+        except exception.SolidFireAPIException:
+            pass
 
     def _issue_api_request(self, method_name, params, version='1.0'):
         """All API requests to SolidFire device go through this method.