Skip to content

Commit

Permalink
print success message only if no failure detected
Browse files Browse the repository at this point in the history
  • Loading branch information
Sispheor committed Dec 2, 2022
1 parent bebcd8f commit c03b65a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/callback/monkeyble_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ def v2_runner_on_start(self, host, task):
return super(CallbackModule, self).v2_runner_on_start(host, task)

def v2_playbook_on_stats(self, stats):
# if we reach this line, all test have passed successfully
self.display_message_ok(msg=f"🐵 Monkeyble - ALL TESTS PASSED ✔ - scenario: {self.monkeyble_scenario_description}")
if not stats.failures:
self.display_message_ok(msg=f"🐵 Monkeyble - ALL TESTS PASSED ✔ - scenario: {self.monkeyble_scenario_description}")
super(CallbackModule, self).v2_playbook_on_stats(stats)

def v2_runner_on_unreachable(self, result):
Expand Down

0 comments on commit c03b65a

Please sign in to comment.