The default ttl for Google Cloud's API is 0.

The default can't be `None' since we're calling `int' on the value of ttl.

Signed-off-by: Tomaz Muraus <[email protected]>


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

Branch: refs/heads/trunk
Commit: b21041c9f985d05c0c51100f8710e2891bc54c39
Parents: 532ce82
Author: Franck Cuny <[email protected]>
Authored: Sun Oct 19 22:46:10 2014 -0700
Committer: Tomaz Muraus <[email protected]>
Committed: Thu Oct 23 16:15:29 2014 +0800

----------------------------------------------------------------------
 libcloud/dns/drivers/google.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/b21041c9/libcloud/dns/drivers/google.py
----------------------------------------------------------------------
diff --git a/libcloud/dns/drivers/google.py b/libcloud/dns/drivers/google.py
index ca3e5f0..15b5859 100644
--- a/libcloud/dns/drivers/google.py
+++ b/libcloud/dns/drivers/google.py
@@ -208,7 +208,7 @@ class GoogleDNSDriver(DNSDriver):
 
         :rtype: :class:`Record`
         """
-        ttl = data.get('ttl', None)
+        ttl = data.get('ttl', 0)
         rrdatas = data.get('rrdatas', [])
 
         data = {

Reply via email to