summaryrefslogtreecommitdiff
path: root/hacking
diff options
context:
space:
mode:
authorJordan Borean <jborean93@gmail.com>2018-05-15 09:31:21 +1000
committerGitHub <noreply@github.com>2018-05-15 09:31:21 +1000
commit44ab948e5d3c33b1f24c368da9aaee776d98f512 (patch)
treefa9547729045398f3b08f8962837994bd34c396e /hacking
parent1d640182c61af2d59cc1005f1ab5b217a56dcf15 (diff)
downloadansible-44ab948e5d3c33b1f24c368da9aaee776d98f512.tar.gz
create module tmpdir based on remote_tmp (#39833)
* create module tmpdir based on remote_tmp * Source remote_tmp from controller if possible * Fixed sanity test and not use lambda * Added expansion of env vars to the remote tmp * Fixed sanity issues * Added note around shell remote_tmp option * Changed fallback tmp dir to ~/.ansible/tmp to make shell defaults
Diffstat (limited to 'hacking')
-rwxr-xr-xhacking/test-module3
1 files changed, 2 insertions, 1 deletions
diff --git a/hacking/test-module b/hacking/test-module
index e2e824e9e0..7928ca9b4b 100755
--- a/hacking/test-module
+++ b/hacking/test-module
@@ -125,7 +125,8 @@ 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_tmpdir'] = C.DEFAULT_LOCAL_TMP
+ complex_args['_ansible_tmp'] = C.DEFAULT_LOCAL_TMP
+ comlpex_args['_ansible_keep_remote_files'] = C.DEFAULT_KEEP_REMOTE_FILES
if args.startswith("@"):
# Argument is a YAML file (JSON is a subset of YAML)