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
69febcef
Commit
69febcef
authored
Jan 08, 2014
by
jeromew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove useless create/delete remote tmp dir roundtrip in copy module
parent
d9928539
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
lib/ansible/runner/action_plugins/copy.py
+0
-5
No files found.
lib/ansible/runner/action_plugins/copy.py
View file @
69febcef
...
...
@@ -35,8 +35,6 @@ sys.setdefaultencoding("utf8")
class
ActionModule
(
object
):
TRANSFERS_FILES
=
True
def
__init__
(
self
,
runner
):
self
.
runner
=
runner
...
...
@@ -125,9 +123,6 @@ 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