Fixed doc string issue Signed-off-by: Imesh Gunaratne <[email protected]>
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/d09f8183 Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/d09f8183 Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/d09f8183 Branch: refs/heads/stratos-4.1.x Commit: d09f8183ff03d1bbd05cc7fadcf94716edd3955f Parents: 8796feb Author: Milindu Sanoj Kumarage <[email protected]> Authored: Sun Aug 16 22:50:57 2015 +0530 Committer: Imesh Gunaratne <[email protected]> Committed: Tue Oct 13 16:32:49 2015 +0530 ---------------------------------------------------------------------- .../org.apache.stratos.python.cli/src/main/python/cli/Utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/d09f8183/components/org.apache.stratos.python.cli/src/main/python/cli/Utils.py ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.python.cli/src/main/python/cli/Utils.py b/components/org.apache.stratos.python.cli/src/main/python/cli/Utils.py index 4f64873..9510273 100644 --- a/components/org.apache.stratos.python.cli/src/main/python/cli/Utils.py +++ b/components/org.apache.stratos.python.cli/src/main/python/cli/Utils.py @@ -83,7 +83,6 @@ class PrintableJSON(Texttable): def auth(func): """Authenticate""" def auth_inner(self, *args, **kwargs): - if len(args) > 1 and hasattr(args[1], 'username') and args[1].username is not None: Configs.stratos_username = args[1].username if len(args) > 1 and hasattr(args[1], 'password') and args[1].password is not None: @@ -94,4 +93,7 @@ def auth(func): logging.warning("Pre authentication failed. Some authentication details are missing") else: return func(self, *args, **kwargs) + auth_inner.__name__ = func.__name__.replace('_', '-') + auth_inner.__doc__ = func.__doc__ return auth_inner +
