You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2016/02/23 09:51:16 UTC
[1/2] libcloud git commit: Fix a bug in the GoDaddy DNS driver - host
attribute needs to be a hostname and not a URL.
Repository: libcloud
Updated Branches:
refs/heads/trunk c229c80ac -> 654b7c20e
Fix a bug in the GoDaddy DNS driver - host attribute needs to be a hostname and
not a URL.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/a3ba6a47
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/a3ba6a47
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/a3ba6a47
Branch: refs/heads/trunk
Commit: a3ba6a4751623224f16175df9175ec06b29cdc1a
Parents: c229c80
Author: Tomaz Muraus <to...@apache.org>
Authored: Tue Feb 23 09:47:47 2016 +0100
Committer: Tomaz Muraus <to...@apache.org>
Committed: Tue Feb 23 09:47:47 2016 +0100
----------------------------------------------------------------------
libcloud/dns/drivers/godaddy.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/a3ba6a47/libcloud/dns/drivers/godaddy.py
----------------------------------------------------------------------
diff --git a/libcloud/dns/drivers/godaddy.py b/libcloud/dns/drivers/godaddy.py
index 2f45502..6798983 100644
--- a/libcloud/dns/drivers/godaddy.py
+++ b/libcloud/dns/drivers/godaddy.py
@@ -27,7 +27,7 @@ from libcloud.utils.py3 import httplib
from libcloud.dns.types import Provider, RecordType, RecordDoesNotExistError
from libcloud.dns.base import DNSDriver, Zone, Record
-API_ROOT = 'https://api.godaddy.com/'
+API_HOST = 'api.godaddy.com'
VALID_RECORD_EXTRA_PARAMS = ['prio', 'ttl']
@@ -68,7 +68,7 @@ class GoDaddyDNSResponse(JsonResponse):
class GoDaddyDNSConnection(ConnectionKey):
responseCls = GoDaddyDNSResponse
- host = API_ROOT
+ host = API_HOST
allow_insecure = False
[2/2] libcloud git commit: Fix __repr__ - self.code is a string and
not a number.
Posted by to...@apache.org.
Fix __repr__ - self.code is a string and not a number.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/654b7c20
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/654b7c20
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/654b7c20
Branch: refs/heads/trunk
Commit: 654b7c20e83f00fca36b45d715c62ea55e38f05b
Parents: a3ba6a4
Author: Tomaz Muraus <to...@apache.org>
Authored: Tue Feb 23 09:49:19 2016 +0100
Committer: Tomaz Muraus <to...@apache.org>
Committed: Tue Feb 23 09:49:19 2016 +0100
----------------------------------------------------------------------
libcloud/dns/drivers/godaddy.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/654b7c20/libcloud/dns/drivers/godaddy.py
----------------------------------------------------------------------
diff --git a/libcloud/dns/drivers/godaddy.py b/libcloud/dns/drivers/godaddy.py
index 6798983..1a18e3a 100644
--- a/libcloud/dns/drivers/godaddy.py
+++ b/libcloud/dns/drivers/godaddy.py
@@ -41,7 +41,7 @@ class GoDaddyDNSException(LibcloudError):
return self.__repr__()
def __repr__(self):
- return '<GoDaddyDNSException in %d: %s>' % (self.code, self.message)
+ return ('<GoDaddyDNSException in %s: %s>' % (self.code, self.message))
class GoDaddyDNSResponse(JsonResponse):
@@ -59,8 +59,7 @@ class GoDaddyDNSResponse(JsonResponse):
def parse_error(self):
data = self.parse_body()
- raise GoDaddyDNSException(
- data['code'], data['message'])
+ raise GoDaddyDNSException(code=data['code'], message=data['message'])
def success(self):
return self.status in self.valid_response_codes