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
3a768b3b
Commit
3a768b3b
authored
Jul 13, 2015
by
Brian Coca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed unused methods, these now live in base class
parent
c18fdd0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
56 deletions
+1
-56
lib/ansible/plugins/callback/minimal.py
+1
-56
No files found.
lib/ansible/plugins/callback/minimal.py
View file @
3a768b3b
...
@@ -33,9 +33,6 @@ class CallbackModule(CallbackBase):
...
@@ -33,9 +33,6 @@ class CallbackModule(CallbackBase):
CALLBACK_TYPE
=
'stdout'
CALLBACK_TYPE
=
'stdout'
CALLBACK_NAME
=
'minimal'
CALLBACK_NAME
=
'minimal'
def
v2_on_any
(
self
,
*
args
,
**
kwargs
):
pass
def
v2_runner_on_failed
(
self
,
result
,
ignore_errors
=
False
):
def
v2_runner_on_failed
(
self
,
result
,
ignore_errors
=
False
):
if
'exception'
in
result
.
_result
:
if
'exception'
in
result
.
_result
:
if
self
.
_display
.
verbosity
<
3
:
if
self
.
_display
.
verbosity
<
3
:
...
@@ -50,7 +47,7 @@ class CallbackModule(CallbackBase):
...
@@ -50,7 +47,7 @@ class CallbackModule(CallbackBase):
# finally, remove the exception from the result so it's not shown every time
# finally, remove the exception from the result so it's not shown every time
del
result
.
_result
[
'exception'
]
del
result
.
_result
[
'exception'
]
self
.
_display
.
display
(
"
%
s | FAILED! =>
%
s"
%
(
result
.
_host
.
get_name
(),
result
.
_result
),
color
=
'red'
)
self
.
_display
.
display
(
"
%
s | FAILED! =>
%
s"
%
(
result
.
_host
.
get_name
(),
self
.
_dump_results
(
result
.
_result
)
),
color
=
'red'
)
def
v2_runner_on_ok
(
self
,
result
):
def
v2_runner_on_ok
(
self
,
result
):
self
.
_display
.
display
(
"
%
s | SUCCESS =>
%
s"
%
(
result
.
_host
.
get_name
(),
self
.
_dump_results
(
result
.
_result
)),
color
=
'green'
)
self
.
_display
.
display
(
"
%
s | SUCCESS =>
%
s"
%
(
result
.
_host
.
get_name
(),
self
.
_dump_results
(
result
.
_result
)),
color
=
'green'
)
...
@@ -60,55 +57,3 @@ class CallbackModule(CallbackBase):
...
@@ -60,55 +57,3 @@ class CallbackModule(CallbackBase):
def
v2_runner_on_unreachable
(
self
,
result
):
def
v2_runner_on_unreachable
(
self
,
result
):
self
.
_display
.
display
(
"
%
s | UNREACHABLE!"
%
result
.
_host
.
get_name
(),
color
=
'yellow'
)
self
.
_display
.
display
(
"
%
s | UNREACHABLE!"
%
result
.
_host
.
get_name
(),
color
=
'yellow'
)
def
v2_runner_on_no_hosts
(
self
,
task
):
pass
def
v2_runner_on_async_poll
(
self
,
host
,
res
,
jid
,
clock
):
pass
def
v2_runner_on_async_ok
(
self
,
host
,
res
,
jid
):
pass
def
v2_runner_on_async_failed
(
self
,
host
,
res
,
jid
):
pass
def
v2_playbook_on_start
(
self
):
pass
def
v2_playbook_on_notify
(
self
,
host
,
handler
):
pass
def
v2_playbook_on_no_hosts_matched
(
self
):
pass
def
v2_playbook_on_no_hosts_remaining
(
self
):
pass
def
v2_playbook_on_task_start
(
self
,
task
,
is_conditional
):
pass
def
v2_playbook_on_cleanup_task_start
(
self
,
task
):
pass
def
v2_playbook_on_handler_task_start
(
self
,
task
):
pass
def
v2_playbook_on_vars_prompt
(
self
,
varname
,
private
=
True
,
prompt
=
None
,
encrypt
=
None
,
confirm
=
False
,
salt_size
=
None
,
salt
=
None
,
default
=
None
):
pass
def
v2_playbook_on_setup
(
self
):
pass
def
v2_playbook_on_import_for_host
(
self
,
result
,
imported_file
):
pass
def
v2_playbook_on_not_import_for_host
(
self
,
result
,
missing_file
):
pass
def
v2_playbook_on_play_start
(
self
,
play
):
pass
def
v2_playbook_on_stats
(
self
,
stats
):
pass
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