libcloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r1180488 - /libcloud/trunk/libcloud/dns/drivers/zerigo.py
Date Sat, 08 Oct 2011 21:11:40 GMT
Author: tomaz
Date: Sat Oct  8 21:11:39 2011
New Revision: 1180488

URL: http://svn.apache.org/viewvc?rev=1180488&view=rev
Log:
Set context in delete methods in Zerigo DNS driver.

Modified:
    libcloud/trunk/libcloud/dns/drivers/zerigo.py

Modified: libcloud/trunk/libcloud/dns/drivers/zerigo.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/libcloud/dns/drivers/zerigo.py?rev=1180488&r1=1180487&r2=1180488&view=diff
==============================================================================
--- libcloud/trunk/libcloud/dns/drivers/zerigo.py (original)
+++ libcloud/trunk/libcloud/dns/drivers/zerigo.py Sat Oct  8 21:11:39 2011
@@ -250,11 +250,13 @@ class ZerigoDNSDriver(DNSDriver):
 
     def delete_zone(self, zone):
         path = API_ROOT + 'zones/%s.xml' % (zone.id)
+        self.connection.set_context({'resource': 'zone', 'id': zone.id})
         response = self.connection.request(action=path, method='DELETE')
         return response.status == httplib.OK
 
     def delete_record(self, record):
         path = API_ROOT + 'hosts/%s.xml' % (record.id)
+        self.connection.set_context({'resource': 'record', 'id': record.id})
         response = self.connection.request(action=path, method='DELETE')
         return response.status == httplib.OK
 



Mime
View raw message