You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2014/01/03 15:59:23 UTC

[11/44] git commit: Lint fixes

Lint fixes


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/53de72ee
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/53de72ee
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/53de72ee

Branch: refs/heads/trunk
Commit: 53de72ee3d9b0b52c576f9e8fecd3030084419df
Parents: ea7662a
Author: Rick Wright <ri...@google.com>
Authored: Mon Dec 16 14:02:26 2013 -0800
Committer: Rick Wright <ri...@google.com>
Committed: Mon Dec 16 14:02:26 2013 -0800

----------------------------------------------------------------------
 libcloud/compute/drivers/gce.py | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/53de72ee/libcloud/compute/drivers/gce.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/gce.py b/libcloud/compute/drivers/gce.py
index d38b42b..fd6c2e7 100644
--- a/libcloud/compute/drivers/gce.py
+++ b/libcloud/compute/drivers/gce.py
@@ -1493,11 +1493,11 @@ class GCENodeDriver(NodeDriver):
                         disk_req, method='POST', data=disk_data,
                         params=disk_params).object
                 except:
-                     e = self._catch_error(ignore_errors=ignore_errors)
-                     error = e.value
-                     code = e.code
-                     disk_res = None
-                     status['disk'] = GCEFailedDisk(status['name'],
+                    e = self._catch_error(ignore_errors=ignore_errors)
+                    error = e.value
+                    code = e.code
+                    disk_res = None
+                    status['disk'] = GCEFailedDisk(status['name'],
                                                     error, code)
                 status['disk_response'] = disk_res
 
@@ -1717,7 +1717,6 @@ class GCENodeDriver(NodeDriver):
         :return:  Storage Volume object
         :rtype:   :class:`StorageVolume`
         """
-        vol = None
         request, volume_data, params = self._create_vol_req(
             size, name, location, image, snapshot)
         try: