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
6cf3975e
Commit
6cf3975e
authored
Oct 14, 2013
by
Paul Sokolovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
copy: Set suitable default result for check mode.
parent
612b4468
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
lib/ansible/runner/action_plugins/copy.py
+3
-1
No files found.
lib/ansible/runner/action_plugins/copy.py
View file @
6cf3975e
...
@@ -118,7 +118,7 @@ class ActionModule(object):
...
@@ -118,7 +118,7 @@ class ActionModule(object):
changed
=
False
changed
=
False
diffs
=
[]
diffs
=
[]
module_result
=
None
module_result
=
{
"changed"
:
False
}
for
source_full
,
source_rel
in
source_files
:
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.
# 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
)
tmp
=
self
.
runner
.
_make_tmp_path
(
conn
)
...
@@ -164,6 +164,8 @@ class ActionModule(object):
...
@@ -164,6 +164,8 @@ class ActionModule(object):
if
content
is
not
None
:
if
content
is
not
None
:
os
.
remove
(
tmp_content
)
os
.
remove
(
tmp_content
)
diffs
.
append
(
diff
)
diffs
.
append
(
diff
)
changed
=
True
module_result
=
dict
(
changed
=
True
)
continue
continue
...
...
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