Author: tomaz
Date: Tue Dec 13 21:52:49 2011
New Revision: 1213944

URL: http://svn.apache.org/viewvc?rev=1213944&view=rev
Log:
Propagate extra keyword arguments passed to the Rackspace driver
connection class (loadbalancer, storage). This patch has been contributed by
Dave King and is part of GH-41.

Modified:
    libcloud/trunk/CHANGES
    libcloud/trunk/libcloud/loadbalancer/drivers/rackspace.py
    libcloud/trunk/libcloud/storage/drivers/cloudfiles.py

Modified: libcloud/trunk/CHANGES
URL: 
http://svn.apache.org/viewvc/libcloud/trunk/CHANGES?rev=1213944&r1=1213943&r2=1213944&view=diff
==============================================================================
--- libcloud/trunk/CHANGES (original)
+++ libcloud/trunk/CHANGES Tue Dec 13 21:52:49 2011
@@ -12,6 +12,12 @@ Changes with Apache Libcloud in developm
      - Add implementation for ex_save_image method to the OpenStack 1.1 driver.
        [Shawn Smith]
 
+  *) Storage:
+
+    - Propagate extra keyword arguments passed to the Rackspace driver
+      connection class.
+      [Dave King]
+
   *) Load-balancer:
 
     - Add 'extra' attribute to the LoadBalancer object and retrieve all the
@@ -33,6 +39,10 @@ Changes with Apache Libcloud in developm
       - Add more balancer states
       [Dave King]
 
+    - Propagate extra keyword arguments passed to the Rackspace driver
+      connection class.
+      [Dave King]
+
 Changes with Apache Libcloud 0.7.1:
 
   *) General:

Modified: libcloud/trunk/libcloud/loadbalancer/drivers/rackspace.py
URL: 
http://svn.apache.org/viewvc/libcloud/trunk/libcloud/loadbalancer/drivers/rackspace.py?rev=1213944&r1=1213943&r2=1213944&view=diff
==============================================================================
--- libcloud/trunk/libcloud/loadbalancer/drivers/rackspace.py (original)
+++ libcloud/trunk/libcloud/loadbalancer/drivers/rackspace.py Tue Dec 13 
21:52:49 2011
@@ -160,8 +160,9 @@ class RackspaceConnection(OpenStackBaseC
     auth_url = AUTH_URL_US
     _url_key = "lb_url"
 
-    def __init__(self, user_id, key, secure=True):
-        super(RackspaceConnection, self).__init__(user_id, key, secure)
+    def __init__(self, user_id, key, secure=True, **kwargs):
+        super(RackspaceConnection, self).__init__(user_id, key, secure, 
+                                                  **kwargs)
         self.api_version = 'v1.0'
         self.accept_format = 'application/json'
 

Modified: libcloud/trunk/libcloud/storage/drivers/cloudfiles.py
URL: 
http://svn.apache.org/viewvc/libcloud/trunk/libcloud/storage/drivers/cloudfiles.py?rev=1213944&r1=1213943&r2=1213944&view=diff
==============================================================================
--- libcloud/trunk/libcloud/storage/drivers/cloudfiles.py (original)
+++ libcloud/trunk/libcloud/storage/drivers/cloudfiles.py Tue Dec 13 21:52:49 
2011
@@ -99,8 +99,9 @@ class CloudFilesConnection(OpenStackBase
     rawResponseCls = CloudFilesRawResponse
     _url_key = "storage_url"
 
-    def __init__(self, user_id, key, secure=True):
-        super(CloudFilesConnection, self).__init__(user_id, key, secure=secure)
+    def __init__(self, user_id, key, secure=True, **kwargs):
+        super(CloudFilesConnection, self).__init__(user_id, key, secure=secure,
+                                                   **kwargs)
         self.api_version = API_VERSION
         self.accept_format = 'application/json'
 


Reply via email to