Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fluentd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
Plugins
fluentd
Commits
06656571
Commit
06656571
authored
7 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Apply API changes to fluentd callback
parent
d0841643
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fluentd.py
+3
-10
3 additions, 10 deletions
fluentd.py
with
3 additions
and
10 deletions
fluentd.py
+
3
−
10
View file @
06656571
...
...
@@ -126,9 +126,6 @@ class CallbackModule(CallbackBase):
self
.
_log
(
logging
.
INFO
,
status
,
'
finish
'
,
'
Finish playbook %s
'
%
self
.
playbook
,
extra
=
summarize_stat
)
def
v2_playbook_on_setup
(
self
):
super
(
CallbackModule
,
self
).
v2_playbook_on_setup
()
def
v2_playbook_on_no_hosts_matched
(
self
):
super
(
CallbackModule
,
self
).
v2_playbook_on_no_hosts_matched
()
...
...
@@ -166,6 +163,7 @@ class CallbackModule(CallbackBase):
self
.
_log
(
logging
.
INFO
,
status
,
'
task
'
,
'
Task %s
'
%
task_name
,
extra
=
result
.
_result
,
host
=
result
.
_host
.
name
,
task
=
task_name
)
def
v2_runner_on_failed
(
self
,
result
,
**
kwargs
):
result
.
_result
[
'
failed
'
]
=
True
self
.
v2_runner_on_ok
(
result
)
def
v2_runner_on_unreachable
(
self
,
result
):
...
...
@@ -178,14 +176,12 @@ class CallbackModule(CallbackBase):
self
.
v2_runner_on_ok
(
result
)
def
v2_runner_on_async_failed
(
self
,
result
):
result
.
_result
[
'
failed
'
]
=
True
self
.
v2_runner_on_ok
(
result
)
def
v2_runner_on_skipped
(
self
,
result
):
super
(
CallbackModule
,
self
).
v2_runner_on_skipped
(
result
)
def
v2_runner_on_file_diff
(
self
,
result
,
diff
):
super
(
CallbackModule
,
self
).
v2_runner_on_file_diff
(
result
,
diff
)
def
v2_runner_retry
(
self
,
result
):
super
(
CallbackModule
,
self
).
v2_runner_retry
(
result
)
...
...
@@ -193,15 +189,12 @@ class CallbackModule(CallbackBase):
self
.
v2_runner_on_ok
(
result
)
def
v2_runner_item_on_failed
(
self
,
result
):
result
.
_result
[
'
failed
'
]
=
True
self
.
v2_runner_on_ok
(
result
)
def
v2_runner_item_on_skipped
(
self
,
result
):
super
(
CallbackModule
,
self
).
v2_runner_item_on_skipped
(
result
)
def
v2_runner_on_no_hosts
(
self
,
task
):
super
(
CallbackModule
,
self
).
v2_runner_on_no_hosts
(
task
)
##### OTHER callbacks #####
def
v2_on_file_diff
(
self
,
result
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment