libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [08/10] libcloud git commit: profitbricks driver doesn't format URLs correctly
Date Fri, 13 Jan 2017 03:30:35 GMT
profitbricks driver doesn't format URLs correctly


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

Branch: refs/heads/trunk
Commit: ee5a227983b8b8a271f693c9f86879adb1539509
Parents: 226783b
Author: Anthony Shaw <anthonyshaw@apache.org>
Authored: Fri Jan 13 14:19:14 2017 +1100
Committer: Anthony Shaw <anthonyshaw@apache.org>
Committed: Fri Jan 13 14:19:14 2017 +1100

----------------------------------------------------------------------
 libcloud/compute/drivers/profitbricks.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/ee5a2279/libcloud/compute/drivers/profitbricks.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/profitbricks.py b/libcloud/compute/drivers/profitbricks.py
index 8013e3b..43996d4 100644
--- a/libcloud/compute/drivers/profitbricks.py
+++ b/libcloud/compute/drivers/profitbricks.py
@@ -127,7 +127,7 @@ class ProfitBricksConnection(ConnectionUserAndKey):
         host and protocol components.
         '''
         if not with_full_url or with_full_url is False:
-            action = self.api_prefix + action
+            action = self.api_prefix + action.lstrip('/')
         else:
             action = action.replace(
                 'https://{host}'.format(host=self.host),


Mime
View raw message