libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [11/44] git commit: Lint fixes
Date Fri, 03 Jan 2014 14:59:23 GMT
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 <rickw@google.com>
Authored: Mon Dec 16 14:02:26 2013 -0800
Committer: Rick Wright <rickw@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:


Mime
View raw message