libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [05/10] git commit: GCE: fix ex_targetpool_add_healthcheck and ex_targetpool_remove_healthcheck.
Date Sat, 20 Sep 2014 20:19:37 GMT
GCE: fix ex_targetpool_add_healthcheck and ex_targetpool_remove_healthcheck.

The requests were malformed and thus did nothing.

Signed-off-by: Tomaz Muraus <tomaz@apache.org>


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

Branch: refs/heads/trunk
Commit: 6ab8fb5683f691bf4c5698cd4570ca2b1368da40
Parents: f61cbd5
Author: Evgeny Egorochkin <phreedom@yandex.ru>
Authored: Tue Jul 1 00:50:02 2014 +0300
Committer: Tomaz Muraus <tomaz@apache.org>
Committed: Sat Sep 20 22:06:36 2014 +0200

----------------------------------------------------------------------
 libcloud/compute/drivers/gce.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/6ab8fb56/libcloud/compute/drivers/gce.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/gce.py b/libcloud/compute/drivers/gce.py
index c5050be..9e65b92 100644
--- a/libcloud/compute/drivers/gce.py
+++ b/libcloud/compute/drivers/gce.py
@@ -1658,7 +1658,7 @@ class GCENodeDriver(NodeDriver):
         if not hasattr(healthcheck, 'name'):
             healthcheck = self.ex_get_healthcheck(healthcheck)
 
-        targetpool_data = {'healthCheck': healthcheck.extra['selfLink']}
+        targetpool_data = {'healthChecks': [{'healthCheck': healthcheck.extra['selfLink']}]
}
 
         request = '/regions/%s/targetPools/%s/addHealthCheck' % (
             targetpool.region.name, targetpool.name)
@@ -1727,7 +1727,7 @@ class GCENodeDriver(NodeDriver):
         if not hasattr(healthcheck, 'name'):
             healthcheck = self.ex_get_healthcheck(healthcheck)
 
-        targetpool_data = {'healthCheck': healthcheck.extra['selfLink']}
+        targetpool_data = {'healthChecks': [{'healthCheck': healthcheck.extra['selfLink']}]
}
 
         request = '/regions/%s/targetPools/%s/removeHealthCheck' % (
             targetpool.region.name, targetpool.name)


Mime
View raw message