1
0
Fork 0
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:
Adrian Likins 2016-10-21 10:20:44 -04:00 committed by Toshio Kuratomi
parent dcbd64b481
commit cf39a1abab

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