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 2015/12/30 10:14:48 UTC
[08/11] libcloud git commit: Fix docstring issue.
Fix docstring issue.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/967a11c4
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/967a11c4
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/967a11c4
Branch: refs/heads/trunk
Commit: 967a11c45b12bdc8a43598615b4b28a6cad9838c
Parents: 3dea379
Author: Tomaz Muraus <to...@tomaz.me>
Authored: Wed Dec 30 16:58:11 2015 +0800
Committer: Tomaz Muraus <to...@tomaz.me>
Committed: Wed Dec 30 16:58:11 2015 +0800
----------------------------------------------------------------------
libcloud/common/onapp.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/967a11c4/libcloud/common/onapp.py
----------------------------------------------------------------------
diff --git a/libcloud/common/onapp.py b/libcloud/common/onapp.py
index 990ce53..259e315 100644
--- a/libcloud/common/onapp.py
+++ b/libcloud/common/onapp.py
@@ -35,11 +35,12 @@ class OnAppConnection(ConnectionUserAndKey):
Add Basic Authentication header to all the requests.
It injects the "Authorization: Basic Base64String===" header
in each request
+
:type headers: ``dict``
:param headers: Default input headers
+
:rtype: ``dict``
- :return: Default input headers with the "Authorization"
- header
+ :return: Default input headers with the "Authorization" header.
"""
b64string = b("%s:%s" % (self.user_id, self.key))
encoded = b64encode(b64string).decode("utf-8")