mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Combine jimi-c and bcoca's ideas and work on hooking module-utils into PluginLoader.
This version just gets the relevant paths from PluginLoader and then uses the existing imp.find_plugin() calls in the AnsiballZ code to load the proper module_utils. Modify PluginLoader to optionally omit subdirectories (module_utils needs to operate on top level dirs, not on subdirs because it has a hierarchical namespace whereas all other plugins use a flat namespace). Rename snippet* variables to module_utils* Add a small number of unittests for recursive_finder Add a larger number of integration tests to demonstrate that module_utils is working. Whitelist module-style shebang in test target library dirs Prefix module_data variable with b_ to be clear that it holds bytes data
This commit is contained in:
@@ -0,0 +1 @@
|
||||
data = 'abcdefgh'
|
||||
@@ -0,0 +1 @@
|
||||
data = 'bar0'
|
||||
@@ -0,0 +1 @@
|
||||
data = 'bar1'
|
||||
@@ -0,0 +1 @@
|
||||
data = 'bar2'
|
||||
@@ -0,0 +1 @@
|
||||
data = 'baz1'
|
||||
@@ -0,0 +1 @@
|
||||
data = 'baz2'
|
||||
@@ -0,0 +1 @@
|
||||
data = 'overridden facts.py'
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
foo = "FOO FROM foo.py"
|
||||
@@ -0,0 +1 @@
|
||||
data = 'foo0'
|
||||
@@ -0,0 +1 @@
|
||||
data = 'foo1'
|
||||
@@ -0,0 +1 @@
|
||||
data = 'foo2'
|
||||
@@ -0,0 +1 @@
|
||||
data = 'qux1'
|
||||
@@ -0,0 +1 @@
|
||||
data = 'qux2:quux'
|
||||
@@ -0,0 +1 @@
|
||||
data = 'qux2:quuz'
|
||||
@@ -0,0 +1 @@
|
||||
data = 'spam1'
|
||||
@@ -0,0 +1 @@
|
||||
data = 'spam2'
|
||||
@@ -0,0 +1 @@
|
||||
data = 'spam3'
|
||||
@@ -0,0 +1 @@
|
||||
data = 'spam4'
|
||||
@@ -0,0 +1 @@
|
||||
data = 'spam5:bacon'
|
||||
@@ -0,0 +1 @@
|
||||
data = 'spam5:eggs'
|
||||
@@ -0,0 +1,2 @@
|
||||
bacon = 'spam6:bacon'
|
||||
eggs = 'spam6:eggs'
|
||||
@@ -0,0 +1 @@
|
||||
eggs = 'spam7:eggs'
|
||||
@@ -0,0 +1 @@
|
||||
data = 'spam7:bacon'
|
||||
@@ -0,0 +1 @@
|
||||
eggs = 'spam8:eggs'
|
||||
@@ -0,0 +1 @@
|
||||
data = 'spam8:bacon'
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
bam = "BAM FROM sub/bam.py"
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
bam = "BAM FROM sub/bam/bam.py"
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
bam = "BAM FROM sub/bar/bam.py"
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
bar = "BAR FROM sub/bar/bar.py"
|
||||
@@ -0,0 +1 @@
|
||||
data = 'yak'
|
||||
Reference in New Issue
Block a user