Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
30e47590
Commit
30e47590
authored
Apr 29, 2014
by
James Cammarata
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7208 from jf/copy-module
Fix "no_log=True" option for copy module (fixes #7193)
parents
863d5f39
0bf1a273
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
lib/ansible/runner/action_plugins/copy.py
+4
-0
No files found.
lib/ansible/runner/action_plugins/copy.py
View file @
30e47590
...
...
@@ -240,6 +240,10 @@ class ActionModule(object):
# 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
,
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_executed
=
True
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment