Actually utilize "method" argument passed to the "_make_request" method.

This argument wasn't used, but that was masked by "**kwargs" abuse.


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

Branch: refs/heads/trunk
Commit: defff8acd1028f78b58df32e8dcd179f728aaf0c
Parents: 6594a46
Author: Tomaz Muraus <[email protected]>
Authored: Wed May 25 14:41:30 2016 +0200
Committer: Tomaz Muraus <[email protected]>
Committed: Wed May 25 14:41:30 2016 +0200

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


http://git-wip-us.apache.org/repos/asf/libcloud/blob/defff8ac/libcloud/dns/drivers/dnspod.py
----------------------------------------------------------------------
diff --git a/libcloud/dns/drivers/dnspod.py b/libcloud/dns/drivers/dnspod.py
index 1e485a8..6232191 100644
--- a/libcloud/dns/drivers/dnspod.py
+++ b/libcloud/dns/drivers/dnspod.py
@@ -61,14 +61,14 @@ class DNSPodDNSDriver(DNSDriver):
         RecordType.TXT: 'TXT'
     }
 
-    def _make_request(self, action, data=None):
+    def _make_request(self, action, method, data=None):
         data = data or {}
         if not data.get('user_token'):
             data['user_token'] = self.key
         if not data.get('format'):
             data['format'] = 'json'
         data = urlencode(data)
-        r = self.connection.request(action=kwargs['action'], method='POST',
+        r = self.connection.request(action=action, method=method,
                                     data=data)
         return r
 

Reply via email to