Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions callback_plugins/jsnapy.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,10 @@ def v2_playbook_on_stats(self, stats):
for result in results:
# self._pp.pprint(result.__dict__)
res = result._result
if res['final_result'] == "Failed":
if res.get('final_result') == "Failed":
for test_name, test_results in iteritems(res['test_results']):
for testlet in test_results:
if testlet['count']['fail'] != 0:

if ('count' in testlet) and testlet['count']['fail'] != 0:
if not has_printed_banner:
self._display.banner("JSNAPy Results for: " + str(host))
has_printed_banner = True
Expand Down