mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
Fix "no_log=True" option for copy module (fixes #7193)
This commit is contained in:
parent
d2819e22e3
commit
0bf1a27393
1 changed files with 4 additions and 0 deletions
|
@ -240,6 +240,10 @@ class ActionModule(object):
|
||||||
# we pass dest only to make sure it includes trailing slash in case of recursive copy
|
# we pass dest only to make sure it includes trailing slash in case of recursive copy
|
||||||
module_args_tmp = "%s src=%s dest=%s original_basename=%s" % (module_args,
|
module_args_tmp = "%s src=%s dest=%s original_basename=%s" % (module_args,
|
||||||
pipes.quote(tmp_src), pipes.quote(dest), pipes.quote(source_rel))
|
pipes.quote(tmp_src), pipes.quote(dest), pipes.quote(source_rel))
|
||||||
|
|
||||||
|
if self.runner.no_log:
|
||||||
|
module_args_tmp = "%s NO_LOG=True" % module_args_tmp
|
||||||
|
|
||||||
module_return = self.runner._execute_module(conn, tmp_path, 'copy', module_args_tmp, inject=inject, complex_args=complex_args, delete_remote_tmp=delete_remote_tmp)
|
module_return = self.runner._execute_module(conn, tmp_path, 'copy', module_args_tmp, inject=inject, complex_args=complex_args, delete_remote_tmp=delete_remote_tmp)
|
||||||
module_executed = True
|
module_executed = True
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue