From c6216325b6417b40354f88cb3fefe80526599f1d Mon Sep 17 00:00:00 2001 From: Daniel Goldberg Date: Tue, 5 Nov 2019 21:04:28 +0200 Subject: [PATCH] Removed bad documentation --- monkey/infection_monkey/utils/load_plugins.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/monkey/infection_monkey/utils/load_plugins.py b/monkey/infection_monkey/utils/load_plugins.py index 8516d8a02..4cf676e5f 100644 --- a/monkey/infection_monkey/utils/load_plugins.py +++ b/monkey/infection_monkey/utils/load_plugins.py @@ -8,10 +8,6 @@ LOG = logging.getLogger(__name__) def _get_candidate_files(base_package_file): - """ - Gets all files under current directory(/actions) - :return: list of all files without .py ending - """ files = glob.glob(join(dirname(base_package_file), "*.py")) return [basename(f)[:-3] for f in files if isfile(f) and not f.endswith('__init__.py')] @@ -23,6 +19,7 @@ def get_instances(base_package_name, base_package_file, parent_class): """ objects = [] candidate_files = _get_candidate_files(base_package_file) + LOG.info("looking for classes of type {} in {}".format(parent_class.__name__, base_package_name)) # Go through all of files for file in candidate_files: # Import module from that file