From cf39a1abab750c907451f8ac94e94136527af6d4 Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Fri, 21 Oct 2016 10:20:44 -0400 Subject: [PATCH] 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. --- hacking/test-module | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hacking/test-module b/hacking/test-module index 70bb044eaf..328071059d 100755 --- a/hacking/test-module +++ b/hacking/test-module @@ -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:]))