libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r1180388 - /libcloud/trunk/libcloud/dns/base.py
Date Sat, 08 Oct 2011 15:19:28 GMT
Author: tomaz
Date: Sat Oct  8 15:19:28 2011
New Revision: 1180388

URL: http://svn.apache.org/viewvc?rev=1180388&view=rev
Log:
Fix base DNS class:

- Add missing zone argument to the create_record method
- add missing "return" keywords

Modified:
    libcloud/trunk/libcloud/dns/base.py

Modified: libcloud/trunk/libcloud/dns/base.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/libcloud/dns/base.py?rev=1180388&r1=1180387&r2=1180388&view=diff
==============================================================================
--- libcloud/trunk/libcloud/dns/base.py (original)
+++ libcloud/trunk/libcloud/dns/base.py Sat Oct  8 15:19:28 2011
@@ -57,14 +57,15 @@ class Zone(object):
         self.extra = extra or {}
 
     def list_records(self):
-        self.driver.list_records(zone=self)
+        return self.driver.list_records(zone=self)
 
     def create_record(self, name, type, data, extra=None):
-        self.driver.create_record(name=name, type=type, data=data, extra=extra)
+        return self.driver.create_record(name=name, zone=self, type=type,
+                                         data=data, extra=extra)
 
     def update(self, domain, type='master', ttl=None, extra=None):
-        self.driver.update_zone(zone=self, domain=domain, type=type, ttl=ttl,
-                                extra=extra)
+        return self.driver.update_zone(zone=self, domain=domain, type=type,
+                                       ttl=ttl, extra=extra)
 
     def delete(self):
         return self.driver.delete_zone(zone=self)



Mime
View raw message