Repository: libcloud
Updated Branches:
  refs/heads/trunk 011d16c38 -> 80a9aa201


[google compute] GCE:Fix check_node indentation to match check_disk

Signed-off-by: Eric Johnson <[email protected]>


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

Branch: refs/heads/trunk
Commit: 80a9aa20148fdd41100d0afb2fad3243d543a25e
Parents: 011d16c
Author: Alex Poms <[email protected]>
Authored: Mon Sep 7 19:06:30 2015 -0400
Committer: Eric Johnson <[email protected]>
Committed: Tue Sep 29 20:28:16 2015 +0000

----------------------------------------------------------------------
 libcloud/compute/drivers/gce.py | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/80a9aa20/libcloud/compute/drivers/gce.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/gce.py b/libcloud/compute/drivers/gce.py
index 2047fbb..0484e30 100644
--- a/libcloud/compute/drivers/gce.py
+++ b/libcloud/compute/drivers/gce.py
@@ -4899,15 +4899,11 @@ class GCENodeDriver(NodeDriver):
             return
         if response['status'] == 'DONE':
             status['node_response'] = None
-        if error:
-            status['node'] = GCEFailedNode(status['name'],
-                                           error, code)
-        else:
-            try:
+            if error:
+                status['node'] = GCEFailedNode(status['name'], error, code)
+            else:
                 status['node'] = self.ex_get_node(status['name'],
                                                   node_attrs['location'])
-            except ResourceNotFoundError:
-                return
 
     def _create_vol_req(self, size, name, location=None, snapshot=None,
                         image=None, ex_disk_type='pd-standard'):

Reply via email to