Update "_make_request" so it explicitly declares all the arguments, fix mutable
default value.


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

Branch: refs/heads/trunk
Commit: 6594a46c53ef6d9953b742826c4fc5d86bc0ed58
Parents: 188b2fa
Author: Tomaz Muraus <[email protected]>
Authored: Wed May 25 14:40:37 2016 +0200
Committer: Tomaz Muraus <[email protected]>
Committed: Wed May 25 14:40:37 2016 +0200

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


http://git-wip-us.apache.org/repos/asf/libcloud/blob/6594a46c/libcloud/dns/drivers/dnspod.py
----------------------------------------------------------------------
diff --git a/libcloud/dns/drivers/dnspod.py b/libcloud/dns/drivers/dnspod.py
index ace17ac..1e485a8 100644
--- a/libcloud/dns/drivers/dnspod.py
+++ b/libcloud/dns/drivers/dnspod.py
@@ -61,7 +61,8 @@ class DNSPodDNSDriver(DNSDriver):
         RecordType.TXT: 'TXT'
     }
 
-    def _make_request(self, data={}, **kwargs):
+    def _make_request(self, action, data=None):
+        data = data or {}
         if not data.get('user_token'):
             data['user_token'] = self.key
         if not data.get('format'):

Reply via email to