You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2014/01/30 17:29:48 UTC

[4/5] git commit: Fix lint issues.

Fix lint issues.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/e3a45ebe
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/e3a45ebe
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/e3a45ebe

Branch: refs/heads/trunk
Commit: e3a45ebe83952c073a3b815e10c3711abba7a6b1
Parents: e1c634d
Author: Tomaz Muraus <to...@apache.org>
Authored: Thu Jan 30 17:25:36 2014 +0100
Committer: Tomaz Muraus <to...@apache.org>
Committed: Thu Jan 30 17:25:36 2014 +0100

----------------------------------------------------------------------
 libcloud/storage/drivers/cloudfiles.py | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/e3a45ebe/libcloud/storage/drivers/cloudfiles.py
----------------------------------------------------------------------
diff --git a/libcloud/storage/drivers/cloudfiles.py b/libcloud/storage/drivers/cloudfiles.py
index c3ce0b5..ff3e676 100644
--- a/libcloud/storage/drivers/cloudfiles.py
+++ b/libcloud/storage/drivers/cloudfiles.py
@@ -120,10 +120,15 @@ class CloudFilesConnection(OpenStackBaseConnection):
         self.use_internal_url = use_internal_url
 
     def _get_endpoint_key(self):
-        endpoint_key = INTERNAL_ENDPOINT_KEY if self.use_internal_url else PUBLIC_ENDPOINT_KEY
+        if self.use_internal_url:
+            endpoint_key = INTERNAL_ENDPOINT_KEY
+        else:
+            endpoint_key = PUBLIC_ENDPOINT_KEY
 
         if self.cdn_request:
-            endpoint_key = PUBLIC_ENDPOINT_KEY  # cdn endpoints don't have internal urls
+            # cdn endpoints don't have internal urls
+            endpoint_key = PUBLIC_ENDPOINT_KEY
+
         return endpoint_key
 
     def get_endpoint(self):