libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r1450517 - in /libcloud/trunk: CHANGES libcloud/dns/drivers/rackspace.py libcloud/test/dns/test_rackspace.py
Date Tue, 26 Feb 2013 23:09:19 GMT
Author: tomaz
Date: Tue Feb 26 23:09:19 2013
New Revision: 1450517

URL: http://svn.apache.org/r1450517
Log:
Remove extra whitespace, update changes, add extra assert.

Modified:
    libcloud/trunk/CHANGES
    libcloud/trunk/libcloud/dns/drivers/rackspace.py
    libcloud/trunk/libcloud/test/dns/test_rackspace.py

Modified: libcloud/trunk/CHANGES
URL: http://svn.apache.org/viewvc/libcloud/trunk/CHANGES?rev=1450517&r1=1450516&r2=1450517&view=diff
==============================================================================
--- libcloud/trunk/CHANGES (original)
+++ libcloud/trunk/CHANGES Tue Feb 26 23:09:19 2013
@@ -9,6 +9,12 @@ Changes with Apache Libcloud in developm
        is private. (LIBCLOUD-297)
        [Grischa Meyer, Tomaz Muraus]
 
+  *) Compute
+
+    - Allow user to specify 'priority' extra argument when creating a MX or SRV
+      record.
+      [Brian Jinwright, Tomaz Muraus]
+
 Changes with Apache Libcloud 0.12.1:
 
   *) General

Modified: libcloud/trunk/libcloud/dns/drivers/rackspace.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/libcloud/dns/drivers/rackspace.py?rev=1450517&r1=1450516&r2=1450517&view=diff
==============================================================================
--- libcloud/trunk/libcloud/dns/drivers/rackspace.py (original)
+++ libcloud/trunk/libcloud/dns/drivers/rackspace.py Tue Feb 26 23:09:19 2013
@@ -240,10 +240,10 @@ class RackspaceDNSDriver(DNSDriver, Open
 
         if 'ttl' in extra:
             data['ttl'] = int(extra['ttl'])
-        
+
         if 'priority' in extra:
-            data['priority'] = int(extra['priority']) 
-            
+            data['priority'] = int(extra['priority'])
+
         payload = {'records': [data]}
         self.connection.set_context({'resource': 'zone', 'id': zone.id})
         response = self.connection.async_request(action='/domains/%s/records'
@@ -346,7 +346,7 @@ class RackspaceDNSDriver(DNSDriver, Open
         for key in VALID_RECORD_EXTRA_PARAMS:
             if key in data:
                 extra[key] = data[key]
-            
+
         record = Record(id=str(id), name=name, type=type, data=record_data,
                         zone=zone, driver=self, extra=extra)
         return record

Modified: libcloud/trunk/libcloud/test/dns/test_rackspace.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/libcloud/test/dns/test_rackspace.py?rev=1450517&r1=1450516&r2=1450517&view=diff
==============================================================================
--- libcloud/trunk/libcloud/test/dns/test_rackspace.py (original)
+++ libcloud/trunk/libcloud/test/dns/test_rackspace.py Tue Feb 26 23:09:19 2013
@@ -109,6 +109,7 @@ class RackspaceUSTests(unittest.TestCase
         self.assertEqual(records[0].type, RecordType.A)
         self.assertEqual(records[0].data, '127.7.7.7')
         self.assertEqual(records[0].extra['ttl'], 777)
+        self.assertEqual(records[0].extra['comment'], 'lulz')
         self.assertEqual(records[0].extra['fqdn'], 'test3.%s' %
                          (records[0].zone.domain))
 



Mime
View raw message