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
d4ac73a1
Commit
d4ac73a1
authored
Jul 17, 2015
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding back capability to display warnings contained in results
Fixes #11255
parent
5abdd3b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
lib/ansible/plugins/callback/default.py
+6
-0
No files found.
lib/ansible/plugins/callback/default.py
View file @
d4ac73a1
...
...
@@ -19,6 +19,7 @@
from
__future__
import
(
absolute_import
,
division
,
print_function
)
__metaclass__
=
type
from
ansible
import
constants
as
C
from
ansible.plugins.callback
import
CallbackBase
class
CallbackModule
(
CallbackBase
):
...
...
@@ -71,6 +72,11 @@ class CallbackModule(CallbackBase):
msg
+=
" =>
%
s"
%
self
.
_dump_results
(
result
.
_result
,
indent
=
indent
)
self
.
_display
.
display
(
msg
,
color
=
color
)
# display warnings, if enabled and any exist in the result
if
C
.
COMMAND_WARNINGS
and
'warnings'
in
result
.
_result
and
result
.
_result
[
'warnings'
]:
for
warning
in
result
.
_result
[
'warnings'
]:
self
.
_display
.
display
(
"warning:
%
s"
%
warning
,
color
=
'purple'
)
def
v2_runner_on_skipped
(
self
,
result
):
msg
=
"skipping: [
%
s]"
%
result
.
_host
.
get_name
()
if
self
.
_display
.
verbosity
>
0
or
'verbose_always'
in
result
.
_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