diff options
Diffstat (limited to 'hacking/test-module')
-rwxr-xr-x | hacking/test-module | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/hacking/test-module b/hacking/test-module index a3a6aa6fab..5d852f1eae 100755 --- a/hacking/test-module +++ b/hacking/test-module @@ -29,12 +29,14 @@ # test-module -m ../library/file/lineinfile -a "dest=/etc/exports line='/srv/home hostname1(rw,sync)'" --check # test-module -m ../library/commands/command -a "echo hello" -n -o "test_hello" -import sys import base64 +from multiprocessing import Lock +import optparse import os import subprocess +import sys import traceback -import optparse + import ansible.utils.vars as utils_vars from ansible.parsing.dataloader import DataLoader from ansible.parsing.utils.jsonify import jsonify @@ -133,10 +135,12 @@ def boilerplate_module(modfile, args, interpreter, check, destfile): modname = os.path.basename(modfile) modname = os.path.splitext(modname)[0] + action_write_lock = Lock() (module_data, module_style, shebang) = module_common.modify_module( modname, modfile, complex_args, + action_write_lock, task_vars=task_vars ) |