summaryrefslogtreecommitdiff
path: root/hacking
diff options
context:
space:
mode:
authorAdrian Likins <alikins@redhat.com>2016-10-21 10:20:44 -0400
committerToshio Kuratomi <a.badger@gmail.com>2016-10-23 16:34:53 -0700
commitcf39a1abab750c907451f8ac94e94136527af6d4 (patch)
tree0c611d8361dba2cdacbeb39ea3de4963f09b43a6 /hacking
parentdcbd64b481d054703d2f83b0600f9c348ea41705 (diff)
downloadansible-cf39a1abab750c907451f8ac94e94136527af6d4.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.
Diffstat (limited to 'hacking')
-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:]))