You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by an...@apache.org on 2016/10/09 09:32:21 UTC

[2/8] libcloud git commit: fix LIBCLOUD-850

fix LIBCLOUD-850


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

Branch: refs/heads/trunk
Commit: 053d57469b502e5e548e2bbfa0322ec018387764
Parents: 0ae5c10
Author: Mario Loria <ma...@arroyonetworks.com>
Authored: Wed Sep 28 16:11:23 2016 -0400
Committer: Mario Loria <ma...@arroyonetworks.com>
Committed: Wed Sep 28 16:11:23 2016 -0400

----------------------------------------------------------------------
 libcloud/common/base.py | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/053d5746/libcloud/common/base.py
----------------------------------------------------------------------
diff --git a/libcloud/common/base.py b/libcloud/common/base.py
index 540244d..4716ef5 100644
--- a/libcloud/common/base.py
+++ b/libcloud/common/base.py
@@ -867,6 +867,8 @@ class Connection(object):
         return response
 
     def morph_action_hook(self, action):
+        if not action.startswith("/")
+            action = "/" + action
         return self.request_path + action
 
     def add_default_params(self, params):