Repository: libcloud Updated Branches: refs/heads/trunk 80a9aa201 -> 6be31b9d5
[google compute] By default let's assume if it's not string it's a Node object Closes #552 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/6be31b9d Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/6be31b9d Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/6be31b9d Branch: refs/heads/trunk Commit: 6be31b9d57b4a94d91320d4c33e94071759fa876 Parents: 80a9aa2 Author: Marcin Zaremba <[email protected]> Authored: Wed Jul 22 12:37:14 2015 +0200 Committer: Eric Johnson <[email protected]> Committed: Tue Sep 29 20:35:02 2015 +0000 ---------------------------------------------------------------------- libcloud/compute/drivers/gce.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/6be31b9d/libcloud/compute/drivers/gce.py ---------------------------------------------------------------------- diff --git a/libcloud/compute/drivers/gce.py b/libcloud/compute/drivers/gce.py index 0484e30..7e8b6cb 100644 --- a/libcloud/compute/drivers/gce.py +++ b/libcloud/compute/drivers/gce.py @@ -2187,8 +2187,7 @@ class GCENodeDriver(NodeDriver): elif isinstance(next_hop, str): route_data['nextHopIp'] = next_hop else: - node = self.ex_get_node(next_hop) - route_data['nextHopInstance'] = node.extra['selfLink'] + route_data['nextHopInstance'] = next_hop.extra['selfLink'] request = '/global/routes' self.connection.async_request(request, method='POST',
