From fbf4cafab5858c06a313ce32cec7b83987419a2e Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Fri, 9 Oct 2015 11:27:27 -0400 Subject: [PATCH] on skipped you 'might' not have an item, changed to getattr to avoid keyerror fixes #12683 --- lib/ansible/plugins/callback/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/callback/__init__.py b/lib/ansible/plugins/callback/__init__.py index fc904def492..cd0018c7b2e 100644 --- a/lib/ansible/plugins/callback/__init__.py +++ b/lib/ansible/plugins/callback/__init__.py @@ -111,7 +111,7 @@ class CallbackBase: if '_ansible_no_log' in result and result['_ansible_no_log']: item = "(censored due to no_log)" else: - item = result['item'] + item = getattr(result, 'item') return item