Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
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
edx
configuration
Commits
2cbbd204
Commit
2cbbd204
authored
8 years ago
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't pass callback_module to Formatters
parent
ed489eef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
playbooks/callback_plugins/task_timing.py
+4
-5
No files found.
playbooks/callback_plugins/task_timing.py
View file @
2cbbd204
...
...
@@ -35,14 +35,13 @@ class Timestamp(object):
class
Formatter
(
object
):
def
__init__
(
self
,
callback_module
,
playbook_timestamp
):
self
.
callback_module
=
callback_module
def
__init__
(
self
,
playbook_timestamp
):
self
.
playbook_timestamp
=
playbook_timestamp
class
DatadogFormatter
(
Formatter
):
def
__init__
(
self
,
callback_module
,
playbook_timestamp
):
super
(
DatadogFormatter
,
self
)
.
__init__
(
callback_module
,
playbook_timestamp
)
def
__init__
(
self
,
playbook_timestamp
):
super
(
DatadogFormatter
,
self
)
.
__init__
(
playbook_timestamp
)
self
.
datadog_api_key
=
os
.
getenv
(
'DATADOG_API_KEY'
)
self
.
datadog_api_initialized
=
False
...
...
@@ -219,6 +218,6 @@ class CallbackModule(object):
)
for
fmt_class
in
self
.
formatters
:
formatter
=
fmt_class
(
self
,
playbook_timestamp
)
formatter
=
fmt_class
(
playbook_timestamp
)
formatter
.
log_tasks
(
self
.
playbook_name
,
results
)
formatter
.
log_play
(
self
.
playbook_name
,
len
(
self
.
stats
))
This diff is collapsed.
Click to expand it.
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