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
c039dbe3
Commit
c039dbe3
authored
Mar 10, 2014
by
Andrea.Mandolo
Committed by
Michael DeHaan
Mar 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add STDOUT lines in response of "synchronize" module
parent
f9ec53cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
library/files/synchronize
+5
-2
No files found.
library/files/synchronize
View file @
c039dbe3
...
...
@@ -304,8 +304,11 @@ def main():
return
module
.
fail_json
(
msg
=
err
,
rc
=
rc
,
cmd
=
cmdstr
)
else
:
changed
=
changed_marker
in
out
return
module
.
exit_json
(
changed
=
changed
,
msg
=
out
.
replace
(
changed_marker
,
''
),
rc
=
rc
,
cmd
=
cmdstr
)
out_clean
=
out
.
replace
(
changed_marker
,
''
)
out_lines
=
out_clean
.
split
(
'
\n
'
)
while
''
in
out_lines
:
out_lines
.
remove
(
''
)
return
module
.
exit_json
(
changed
=
changed
,
msg
=
out_clean
,
rc
=
rc
,
cmd
=
cmdstr
,
stdout_lines
=
out_lines
)
# import module snippets
from
ansible.module_utils.basic
import
*
...
...
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