libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [2/8] libcloud git commit: fix LIBCLOUD-850
Date Sun, 09 Oct 2016 09:32:21 GMT
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 <mario@arroyonetworks.com>
Authored: Wed Sep 28 16:11:23 2016 -0400
Committer: Mario Loria <mario@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):


Mime
View raw message