mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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.
This commit is contained in:
parent
dcbd64b481
commit
cf39a1abab
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
|
||||
|
||||
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…
Reference in a new issue