diff options
author | Adrian Likins <alikins@redhat.com> | 2016-10-21 10:20:44 -0400 |
---|---|---|
committer | Adrian Likins <alikins@redhat.com> | 2016-10-24 09:14:35 -0400 |
commit | fef9de30d952e76fe9e309f6213e12146c7bea68 (patch) | |
tree | f0423b1665e5a2a8b1ef53bdae56093725d99eba /hacking/test-module | |
parent | 51692526410992231f9b1ab04d6c332ff72908ac (diff) | |
download | ansible-fef9de30d952e76fe9e309f6213e12146c7bea68.tar.gz |
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 cf39a1abab750c907451f8ac94e94136527af6d4)
Diffstat (limited to 'hacking/test-module')
-rwxr-xr-x | hacking/test-module | 4 |
1 files changed, 4 insertions, 0 deletions
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:])) |