diff options
author | Zhikang Zhang <zzhang63@ncsu.edu> | 2018-06-01 15:02:56 -0400 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2018-06-01 12:02:56 -0700 |
commit | b578bf9e20f469272de1f8a1c21b58f27707cd32 (patch) | |
tree | 7abd3ae00eaee37f65459c665b8fa38d18a337b8 /hacking | |
parent | 479b26fe31d5eff5e7e6a4504aa174591414a8be (diff) | |
download | ansible-b578bf9e20f469272de1f8a1c21b58f27707cd32.tar.gz |
Fix test-module failing to validate args (#41004)
* Fix test-module failing to validate args
The test-module pass a wrong argument _ansible_tmp cause the validation failed.
Change the argument _ansible_tmp to _ansible_tmpdir to fix this.
* Add a integration test for test-module.
Prior to this change, we don't have a test for test-module.
This change ensure the correctness of test-module script.
Diffstat (limited to 'hacking')
-rwxr-xr-x | hacking/test-module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hacking/test-module b/hacking/test-module index c07d973fe1..c56b8b7216 100755 --- a/hacking/test-module +++ b/hacking/test-module @@ -125,7 +125,7 @@ def boilerplate_module(modfile, args, interpreters, check, destfile): # default selinux fs list is pass in as _ansible_selinux_special_fs arg complex_args['_ansible_selinux_special_fs'] = C.DEFAULT_SELINUX_SPECIAL_FS - complex_args['_ansible_tmp'] = C.DEFAULT_LOCAL_TMP + complex_args['_ansible_tmpdir'] = C.DEFAULT_LOCAL_TMP complex_args['_ansible_keep_remote_files'] = C.DEFAULT_KEEP_REMOTE_FILES if args.startswith("@"): |