diff options
author | Tim Rozet <trozet@redhat.com> | 2018-04-05 17:46:24 -0400 |
---|---|---|
committer | Tim Rozet <trozet@redhat.com> | 2018-04-06 17:43:13 +0000 |
commit | bc4ab949d988f12f8e896436b56bbc8b92d815db (patch) | |
tree | b83a6d669007364e0d2b1c655c39418f12251191 | |
parent | 7cb09c12216425351b7e1274aa9aa735a4cbac78 (diff) |
Fixes relative import for utils
opnfv-pyutil was not working due to this relative import. The script
would only work out of the pwd.
Change-Id: I1ed5db779dd031d019012a814b2dfe27944a2e2f
Signed-off-by: Tim Rozet <trozet@redhat.com>
(cherry picked from commit c8f07fda6445b9b3b1fcb9d97f05cd40fffe8daf)
-rw-r--r-- | apex/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apex/utils.py b/apex/utils.py index 56caaefe..f7914613 100644 --- a/apex/utils.py +++ b/apex/utils.py @@ -70,7 +70,7 @@ def fetch_logs(args): def execute_actions(args): for action in VALID_UTILS: if hasattr(args, action) and getattr(args, action): - util_module = __import__('utils') + util_module = __import__('apex').utils func = getattr(util_module, action) logging.info("Executing action: {}".format(action)) func(args) |