diff --git a/hacking/test-module b/hacking/test-module index bd9d96a474..cb4398334c 100755 --- a/hacking/test-module +++ b/hacking/test-module @@ -35,6 +35,7 @@ import sys import traceback import shutil +from ansible.release import __version__ import ansible.utils.vars as utils_vars from ansible.parsing.dataloader import DataLoader from ansible.parsing.utils.jsonify import jsonify @@ -124,6 +125,7 @@ def boilerplate_module(modfile, args, interpreters, check, destfile): complex_args['_ansible_selinux_special_fs'] = C.DEFAULT_SELINUX_SPECIAL_FS complex_args['_ansible_tmpdir'] = C.DEFAULT_LOCAL_TMP complex_args['_ansible_keep_remote_files'] = C.DEFAULT_KEEP_REMOTE_FILES + complex_args['_ansible_version'] = __version__ if args.startswith("@"): # Argument is a YAML file (JSON is a subset of YAML)