From b9d54e9a01e4e15b5266454a4e91b706998ee92e Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Fri, 9 Oct 2015 13:01:02 -0400 Subject: [PATCH] corrects previous fix to deal with missing item key in results dict --- 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 cd0018c7b2e..bd9f7c775f4 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 = getattr(result, 'item') + item = get(result, 'item', None) return item