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
d706fd1e
Commit
d706fd1e
authored
Mar 05, 2015
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10388 from willthames/no_log_skipped
Don't log item data for skipped tasks under no_log
parents
c3d34a53
13a591ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
lib/ansible/runner/__init__.py
+7
-3
No files found.
lib/ansible/runner/__init__.py
View file @
d706fd1e
...
...
@@ -873,9 +873,13 @@ class Runner(object):
for
cond
in
self
.
conditional
:
if
not
utils
.
check_conditional
(
cond
,
self
.
basedir
,
inject
,
fail_on_undefined
=
self
.
error_on_undefined_vars
):
result
=
utils
.
jsonify
(
dict
(
changed
=
False
,
skipped
=
True
))
self
.
callbacks
.
on_skipped
(
host
,
inject
.
get
(
'item'
,
None
))
return
ReturnData
(
host
=
host
,
result
=
result
)
result
=
dict
(
changed
=
False
,
skipped
=
True
)
if
self
.
no_log
:
result
=
utils
.
censor_unlogged_data
(
result
)
self
.
callbacks
.
on_skipped
(
host
,
result
)
else
:
self
.
callbacks
.
on_skipped
(
host
,
inject
.
get
(
'item'
,
None
))
return
ReturnData
(
host
=
host
,
result
=
utils
.
jsonify
(
result
))
if
getattr
(
handler
,
'setup'
,
None
)
is
not
None
:
handler
.
setup
(
module_name
,
inject
)
...
...
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