mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-02 23:31:25 -07:00
Modular server-side actions (squash merge)
This commit is contained in:
parent
975c323e39
commit
633e513a65
10 changed files with 451 additions and 216 deletions
|
@ -485,6 +485,8 @@ def filter_leading_non_json_lines(buf):
|
|||
def import_plugins(directory):
|
||||
modules = {}
|
||||
for path in glob.glob(os.path.join(directory, '*.py')):
|
||||
if path.startswith("_"):
|
||||
continue
|
||||
name, ext = os.path.splitext(os.path.basename(path))
|
||||
if not name.startswith("_"):
|
||||
modules[name] = imp.load_source(name, path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue