libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject git commit: Send a query parameter wtih a value of '1'. API doesn't seem to consider string 'true' as true.
Date Tue, 31 Dec 2013 00:32:48 GMT
Updated Branches:
  refs/heads/trunk 4449e165a -> 903e70844


Send a query parameter wtih a value of '1'. API doesn't seem to consider string
'true' as true.


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

Branch: refs/heads/trunk
Commit: 903e70844b669b91770c3944162e687de62b5eb9
Parents: 4449e16
Author: Tomaz Muraus <tomaz@apache.org>
Authored: Tue Dec 31 01:28:47 2013 +0100
Committer: Tomaz Muraus <tomaz@apache.org>
Committed: Tue Dec 31 01:32:13 2013 +0100

----------------------------------------------------------------------
 libcloud/compute/drivers/digitalocean.py   | 2 +-
 libcloud/test/compute/test_digitalocean.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/903e7084/libcloud/compute/drivers/digitalocean.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/digitalocean.py b/libcloud/compute/drivers/digitalocean.py
index 4db0e2f..37434ab 100644
--- a/libcloud/compute/drivers/digitalocean.py
+++ b/libcloud/compute/drivers/digitalocean.py
@@ -122,7 +122,7 @@ class DigitalOceanNodeDriver(NodeDriver):
         return res.status == httplib.OK
 
     def destroy_node(self, node):
-        params = {'scrub_data': 'true'}
+        params = {'scrub_data': '1'}
         res = self.connection.request('/droplets/%s/destroy/' % (node.id),
                                       params=params)
         return res.status == httplib.OK

http://git-wip-us.apache.org/repos/asf/libcloud/blob/903e7084/libcloud/test/compute/test_digitalocean.py
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/test_digitalocean.py b/libcloud/test/compute/test_digitalocean.py
index 043e610..86fe323 100644
--- a/libcloud/test/compute/test_digitalocean.py
+++ b/libcloud/test/compute/test_digitalocean.py
@@ -129,7 +129,7 @@ class DigitalOceanMockHttp(MockHttpTestCase):
 
     def _droplets_119461_destroy(self, method, url, body, headers):
         # destroy_node
-        self.assertUrlContainsQueryParams(url, {'scrub_data': 'true'})
+        self.assertUrlContainsQueryParams(url, {'scrub_data': '1'})
         body = self.fixtures.load('destroy_node.json')
         return (httplib.OK, body, {}, httplib.responses[httplib.OK])
 


Mime
View raw message