Repository: libcloud Updated Branches: refs/heads/trunk 988e3bf32 -> 77afd30dc
Added the _ex_connection_class_kwargs way to handle dynamic parametrs at GoDaddyDNSDriver. Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/a1ca65d5 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/a1ca65d5 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/a1ca65d5 Branch: refs/heads/trunk Commit: a1ca65d5f4c356098bb89724dace6b5f837be7e5 Parents: 988e3bf Author: Teemu Vesala <[email protected]> Authored: Wed Apr 20 11:44:11 2016 +0000 Committer: anthony-shaw <[email protected]> Committed: Sat Apr 23 13:06:43 2016 +1000 ---------------------------------------------------------------------- libcloud/dns/drivers/godaddy.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/a1ca65d5/libcloud/dns/drivers/godaddy.py ---------------------------------------------------------------------- diff --git a/libcloud/dns/drivers/godaddy.py b/libcloud/dns/drivers/godaddy.py index 1a18e3a..62f2b6d 100644 --- a/libcloud/dns/drivers/godaddy.py +++ b/libcloud/dns/drivers/godaddy.py @@ -71,7 +71,7 @@ class GoDaddyDNSConnection(ConnectionKey): allow_insecure = False - def __init__(self, key, secret, shopper_id, secure=True, host=None, + def __init__(self, key, secret, secure=True, shopper_id=None, host=None, port=None, url=None, timeout=None, proxy_url=None, backoff=None, retry_delay=None): super(GoDaddyDNSConnection, self).__init__( @@ -130,6 +130,7 @@ class GoDaddyDNSDriver(DNSDriver): :param secret: Your access key secret :type secret: ``str`` """ + self.shopper_id = shopper_id super(GoDaddyDNSDriver, self).__init__(key=key, secret=secret, secure=secure, host=host, port=port, @@ -469,6 +470,9 @@ class GoDaddyDNSDriver(DNSDriver): def _get_id_of_record(self, name, type): return '%s:%s' % (name, type) + def _ex_connection_class_kwargs(self): + return {'shopper_id': self.shopper_id} + class GoDaddyAvailability(object): def __init__(self, domain, available, price, currency, period):
