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