You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by an...@apache.org on 2016/04/23 05:07:10 UTC

[2/2] libcloud git commit: If shopper_id is set to None, then the X-shopper-id header is not submitted to GoDaddy at all. Closes #770

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 <Te...@qentinel.com>
Authored: Thu Apr 21 19:26:31 2016 +0000
Committer: anthony-shaw <an...@apache.org>
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