diff options
author | 2020-04-10 13:58:40 -0700 | |
---|---|---|
committer | 2020-04-14 08:11:03 -0700 | |
commit | d6b3ac08745b099fbd0ea5ff9feec22a0247bf49 (patch) | |
tree | 24681e2239d99ca9ce7f73195b15feb46a74c850 /onap-client/onap_client/client | |
parent | 71a1fd0d98c99692a25f9087ad5edfbd7cf00800 (diff) |
[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 <steven.stark@att.com>
Change-Id: I0f0bddb04d4de10b9003e4fc6380619539f41ca4
Diffstat (limited to 'onap-client/onap_client/client')
-rw-r--r-- | onap-client/onap_client/client/clients.py | 8 |
1 files changed, 5 insertions, 3 deletions
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 |