From d6b3ac08745b099fbd0ea5ff9feec22a0247bf49 Mon Sep 17 00:00:00 2001 From: "stark, steven" Date: Fri, 10 Apr 2020 13:58:40 -0700 Subject: [VVP] adding support for updating checked out resources - also fixing imports of client to skip tests* Issue-ID: VVP-403 Signed-off-by: stark, steven Change-Id: I0f0bddb04d4de10b9003e4fc6380619539f41ca4 --- onap-client/onap_client/client/clients.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'onap-client/onap_client/client') diff --git a/onap-client/onap_client/client/clients.py b/onap-client/onap_client/client/clients.py index 0c4605f..9b7a0c6 100644 --- a/onap-client/onap_client/client/clients.py +++ b/onap-client/onap_client/client/clients.py @@ -79,7 +79,9 @@ def import_submodules(package, recursive=True): results = {} for loader, name, is_pkg in pkgutil.walk_packages(package.__path__): full_name = package.__name__ + "." + name - results[full_name] = importlib.import_module(full_name) - if recursive and is_pkg and full_name.find("tests") == -1: - results.update(import_submodules(full_name)) + if full_name.find("tests") == -1: + results[full_name] = importlib.import_module(full_name) + if recursive and is_pkg: + results.update(import_submodules(full_name)) + return results -- cgit 1.2.3-korg