diff --git a/lib/ansible/plugins/callback/__init__.py b/lib/ansible/plugins/callback/__init__.py index cd0018c7b2..bd9f7c775f 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