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.
pull/18101/head
Adrian Likins 8 years ago committed by Toshio Kuratomi
parent dcbd64b481
commit cf39a1abab

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

Loading…
Cancel
Save