libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [24/44] git commit: Lint fixes
Date Fri, 03 Jan 2014 14:59:36 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/aa6f7339
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/aa6f7339
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/aa6f7339

Branch: refs/heads/trunk
Commit: aa6f73393f4adccde88d5d71cf6d9388192870b4
Parents: 5ea7189
Author: Rick Wright <rickw@google.com>
Authored: Mon Dec 16 14:02:26 2013 -0800
Committer: Rick Wright <rickw@google.com>
Committed: Thu Jan 2 23:30:02 2014 -0800

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


http://git-wip-us.apache.org/repos/asf/libcloud/blob/aa6f7339/libcloud/compute/drivers/gce.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/gce.py b/libcloud/compute/drivers/gce.py
index 421c0ca..d80c37b 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