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 cf39a1abab)
This commit is contained in:
Adrian Likins 2016-10-21 10:20:44 -04:00
parent 5169252641
commit fef9de30d9

View file

@ -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:]))