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
ef2df815
Commit
ef2df815
authored
Feb 19, 2014
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixup result dictionary when copy module calls file module
parent
6fb02650
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
lib/ansible/runner/action_plugins/copy.py
+7
-0
No files found.
lib/ansible/runner/action_plugins/copy.py
View file @
ef2df815
...
...
@@ -258,6 +258,8 @@ class ActionModule(object):
module_executed
=
True
module_result
=
module_return
.
result
if
not
module_result
.
get
(
'md5sum'
):
module_result
[
'md5sum'
]
=
local_md5
if
module_result
.
get
(
'failed'
)
==
True
:
return
module_return
if
module_result
.
get
(
'changed'
)
==
True
:
...
...
@@ -268,6 +270,11 @@ class ActionModule(object):
or
(
not
C
.
DEFAULT_KEEP_REMOTE_FILES
and
delete_remote_tmp
and
not
module_executed
):
self
.
runner
.
_remove_tmp_path
(
conn
,
tmp_path
)
# the file module returns the file path as 'path', but
# the copy module uses 'dest', so add it if it's not there
if
'path'
in
module_result
and
'dest'
not
in
module_result
:
module_result
[
'dest'
]
=
module_result
[
'path'
]
# TODO: Support detailed status/diff for multiple files
if
len
(
source_files
)
==
1
:
result
=
module_result
...
...
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