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
d3cc5bd6
Commit
d3cc5bd6
authored
Dec 20, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5384 from sfromm/cleantmpdir
Make sure action plugin copy cleans up tmp dir
parents
d6ea5be2
833e1f6e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
lib/ansible/runner/action_plugins/copy.py
+3
-0
No files found.
lib/ansible/runner/action_plugins/copy.py
View file @
d3cc5bd6
...
...
@@ -125,6 +125,9 @@ class ActionModule(object):
changed
=
False
diffs
=
[]
module_result
=
{
"changed"
:
False
}
# Remove tmp path since a new one is created below. Should be empty.
if
tmp
.
find
(
"tmp"
)
!=
-
1
:
self
.
runner
.
_low_level_exec_command
(
conn
,
"rm -rf
%
s > /dev/null 2>&1"
%
tmp
,
tmp
)
for
source_full
,
source_rel
in
source_files
:
# We need to get a new tmp path for each file, otherwise the copy module deletes the folder.
tmp
=
self
.
runner
.
_make_tmp_path
(
conn
)
...
...
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