Commit f0ae1358 by Calen Pennington

fixup! Extract task and play timing functions out into their own classes

parent 357a155d
...@@ -51,7 +51,7 @@ class DatadogFormatter(object): ...@@ -51,7 +51,7 @@ class DatadogFormatter(object):
def clean_tag_value(self, value): def clean_tag_value(self, value):
return value.replace(" | ", ".").replace(" ", "-").lower() return value.replace(" | ", ".").replace(" ", "-").lower()
def log_tasks(self, playbook_name, results, task_count): def log_tasks(self, playbook_name, results):
if self.datadog_api_initialized: if self.datadog_api_initialized:
datadog_tasks_metrics = [] datadog_tasks_metrics = []
for name, timestamp in results: for name, timestamp in results:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment