summaryrefslogtreecommitdiff
path: root/hacking/test-module
diff options
context:
space:
mode:
authorAdrian Likins <alikins@redhat.com>2016-10-21 10:20:44 -0400
committerAdrian Likins <alikins@redhat.com>2016-10-24 09:14:35 -0400
commitfef9de30d952e76fe9e309f6213e12146c7bea68 (patch)
treef0423b1665e5a2a8b1ef53bdae56093725d99eba /hacking/test-module
parent51692526410992231f9b1ab04d6c332ff72908ac (diff)
downloadansible-fef9de30d952e76fe9e309f6213e12146c7bea68.tar.gz
test-module _ansible_selinux_special_fs arg added
modules need to have _ansible_selinux_special_fs passed in as an arg, so add the default to the args. (cherry picked from commit cf39a1abab750c907451f8ac94e94136527af6d4)
Diffstat (limited to 'hacking/test-module')
-rwxr-xr-xhacking/test-module4
1 files changed, 4 insertions, 0 deletions
diff --git a/hacking/test-module b/hacking/test-module
index 70bb044eaf..328071059d 100755
--- a/hacking/test-module
+++ b/hacking/test-module
@@ -105,6 +105,10 @@ def boilerplate_module(modfile, args, interpreter, check, destfile):
#included_boilerplate = module_data.find(module_common.REPLACER) != -1 or module_data.find("import ansible.module_utils") != -1
complex_args = {}
+
+ # default selinux fs list is pass in as _ansible_selinux_special_fs arg
+ complex_args['_ansible_selinux_special_fs'] = C.DEFAULT_SELINUX_SPECIAL_FS
+
if args.startswith("@"):
# Argument is a YAML file (JSON is a subset of YAML)
complex_args = utils_vars.combine_vars(complex_args, loader.load_from_file(args[1:]))