From 7f2cae540518b6edc34213acfe1e38aa30084e25 Mon Sep 17 00:00:00 2001 From: Dann Bohn Date: Mon, 16 Nov 2015 16:35:55 -0500 Subject: [PATCH] add REPLACER_SELINUX back into module_common --- lib/ansible/executor/module_common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/executor/module_common.py b/lib/ansible/executor/module_common.py index 152b5dbb37..ba32273256 100644 --- a/lib/ansible/executor/module_common.py +++ b/lib/ansible/executor/module_common.py @@ -39,6 +39,7 @@ REPLACER_WINDOWS = "# POWERSHELL_COMMON" REPLACER_WINARGS = "<>" REPLACER_JSONARGS = "<>" REPLACER_VERSION = "\"<>\"" +REPLACER_SELINUX = "<>" # We could end up writing out parameters with unicode characters so we need to # specify an encoding for the python source file @@ -172,6 +173,7 @@ def modify_module(module_path, module_args, task_vars=dict(), strip_comments=Fal module_data = module_data.replace(REPLACER_COMPLEX, python_repred_args) module_data = module_data.replace(REPLACER_WINARGS, module_args_json) module_data = module_data.replace(REPLACER_JSONARGS, module_args_json) + module_data = module_data.replace(REPLACER_SELINUX, ','.join(C.DEFAULT_SELINUX_SPECIAL_FS)) if module_style == 'new': facility = C.DEFAULT_SYSLOG_FACILITY @@ -200,4 +202,3 @@ def modify_module(module_path, module_args, task_vars=dict(), strip_comments=Fal module_data = b"\n".join(lines) return (module_data, module_style, shebang) -