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 <anthonys...@apache.org> Authored: Fri Jan 13 14:19:14 2017 +1100 Committer: Anthony Shaw <anthonys...@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),