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:
parent
5169252641
commit
fef9de30d9
1 changed files with 4 additions and 0 deletions
|
@ -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
|
#included_boilerplate = module_data.find(module_common.REPLACER) != -1 or module_data.find("import ansible.module_utils") != -1
|
||||||
|
|
||||||
complex_args = {}
|
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("@"):
|
if args.startswith("@"):
|
||||||
# Argument is a YAML file (JSON is a subset of YAML)
|
# 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:]))
|
complex_args = utils_vars.combine_vars(complex_args, loader.load_from_file(args[1:]))
|
||||||
|
|
Loading…
Reference in a new issue