From 66eb301cd362f0f76f4a8ab33c4e43b9a3a66694 Mon Sep 17 00:00:00 2001 From: Martin Krizek Date: Fri, 1 Mar 2019 16:29:33 +0100 Subject: [PATCH] profile_tasks: Fix last task time with multiple plays (#53065) --- .../fragments/52760-fix-last-task-time-with-multiple-plays.yaml | 2 ++ lib/ansible/plugins/callback/profile_tasks.py | 1 + 2 files changed, 3 insertions(+) create mode 100644 changelogs/fragments/52760-fix-last-task-time-with-multiple-plays.yaml diff --git a/changelogs/fragments/52760-fix-last-task-time-with-multiple-plays.yaml b/changelogs/fragments/52760-fix-last-task-time-with-multiple-plays.yaml new file mode 100644 index 00000000000..11c2fb4163e --- /dev/null +++ b/changelogs/fragments/52760-fix-last-task-time-with-multiple-plays.yaml @@ -0,0 +1,2 @@ +bugfixes: + - profile_tasks callback - Fix the last task time when running multiple plays (https://github.com/ansible/ansible/issues/52760) diff --git a/lib/ansible/plugins/callback/profile_tasks.py b/lib/ansible/plugins/callback/profile_tasks.py index f8cec495bc5..fedbba7dcee 100644 --- a/lib/ansible/plugins/callback/profile_tasks.py +++ b/lib/ansible/plugins/callback/profile_tasks.py @@ -171,6 +171,7 @@ class CallbackModule(CallbackBase): self._display.display(filled("", fchar="=")) timestamp(self) + self.current = None results = self.stats.items()