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:36 UTC
[24/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/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 <ri...@google.com>
Authored: Mon Dec 16 14:02:26 2013 -0800
Committer: Rick Wright <ri...@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: