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)
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)