If shopper_id is set to None, then the X-shopper-id header is not submitted to GoDaddy at all. Closes #770
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/77afd30d Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/77afd30d Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/77afd30d Branch: refs/heads/trunk Commit: 77afd30dc0399e7117b84ca0f2b9f8b5a39de86d Parents: a1ca65d Author: Teemu Vesala <[email protected]> Authored: Thu Apr 21 19:26:31 2016 +0000 Committer: anthony-shaw <[email protected]> Committed: Sat Apr 23 13:06:44 2016 +1000 ---------------------------------------------------------------------- libcloud/dns/drivers/godaddy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/77afd30d/libcloud/dns/drivers/godaddy.py ---------------------------------------------------------------------- diff --git a/libcloud/dns/drivers/godaddy.py b/libcloud/dns/drivers/godaddy.py index 62f2b6d..62c21d6 100644 --- a/libcloud/dns/drivers/godaddy.py +++ b/libcloud/dns/drivers/godaddy.py @@ -87,7 +87,8 @@ class GoDaddyDNSConnection(ConnectionKey): self.shopper_id = shopper_id def add_default_headers(self, headers): - headers['X-Shopper-Id'] = self.shopper_id + if self.shopper_id is not None: + headers['X-Shopper-Id'] = self.shopper_id headers['Authorization'] = "sso-key %s:%s" % \ (self.key, self.secret) return headers
