Repository: libcloud
Updated Branches:
  refs/heads/trunk e02fec65d -> 2a42270d9


[LIBCLOUD-576] SWIFT: removed superfulous call to upper() on service_region

Closes #311

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/2a42270d
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/2a42270d
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/2a42270d

Branch: refs/heads/trunk
Commit: 2a42270d9548e03a2f98f8e178073fed9101edf1
Parents: e02fec6
Author: Zak Estrada <[email protected]>
Authored: Mon Jun 9 15:44:29 2014 -0500
Committer: Tomaz Muraus <[email protected]>
Committed: Tue Jun 10 12:06:55 2014 +0200

----------------------------------------------------------------------
 CHANGES.rst                            | 6 ++++++
 libcloud/storage/drivers/cloudfiles.py | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/2a42270d/CHANGES.rst
----------------------------------------------------------------------
diff --git a/CHANGES.rst b/CHANGES.rst
index f090c8b..324590d 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -225,6 +225,12 @@ Storage
   (LIBCLOUD-552)
   [Tomaz MUraus]
 
+- Fix a bug in the OpenStack Swift driver which prevented the driver to work
+  with installations where region names in the service catalog werent upper
+  case.
+  (LIBCLOUD-576, GITHUB-311)
+  [Zak Estrada]
+
 Load Balancer
 ~~~~~~~~~~~~~
 

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2a42270d/libcloud/storage/drivers/cloudfiles.py
----------------------------------------------------------------------
diff --git a/libcloud/storage/drivers/cloudfiles.py 
b/libcloud/storage/drivers/cloudfiles.py
index 212d46c..bce89a8 100644
--- a/libcloud/storage/drivers/cloudfiles.py
+++ b/libcloud/storage/drivers/cloudfiles.py
@@ -124,7 +124,7 @@ class OpenStackSwiftConnection(OpenStackBaseConnection):
         self._service_name = self._ex_force_service_name or 'swift'
 
         if self._ex_force_service_region:
-            self._service_region = self._ex_force_service_region.upper()
+            self._service_region = self._ex_force_service_region
         else:
             self._service_region = None
 

Reply via email to