diff options
author | Sunny Kumar <sunkumar@redhat.com> | 2018-10-09 12:43:32 +0530 |
---|---|---|
committer | Shyamsundar Ranganathan <srangana@redhat.com> | 2018-10-10 14:09:40 +0000 |
commit | ba12c00f6d5b1e79796c1cb03f87035ebafd7f19 (patch) | |
tree | eb44b215112ece58628567045184f24fe76e9514 /extras | |
parent | 84a3d43079cfe8cf6a374defa86a345124d5901c (diff) |
cliutils : python2 to python3 compat
This patch fixes import issue in cliutils.
Provided solution is to use relative import.
Change-Id: I14c9a0b528ef52e7c91f6b17b569c68c2ced8912
updates: #411
Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
(cherry picked from commit 8d4c5e022bba1b99786ce13f407c27024beccc23)
Diffstat (limited to 'extras')
-rw-r--r-- | extras/cliutils/__init__.py | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/extras/cliutils/__init__.py b/extras/cliutils/__init__.py index 9c930982be0..8765cc85099 100644 --- a/extras/cliutils/__init__.py +++ b/extras/cliutils/__init__.py @@ -1,18 +1,18 @@ # -*- coding: utf-8 -*- # Reexporting the utility funcs and classes -from cliutils import (runcli, - sync_file_to_peers, - execute_in_peers, - execute, - node_output_ok, - node_output_notok, - output_error, - oknotok, - yesno, - get_node_uuid, - Cmd, - GlusterCmdException, - set_common_args_func) +from .cliutils import (runcli, + sync_file_to_peers, + execute_in_peers, + execute, + node_output_ok, + node_output_notok, + output_error, + oknotok, + yesno, + get_node_uuid, + Cmd, + GlusterCmdException, + set_common_args_func) # This will be useful when `from cliutils import *` |