Host Reports - Puppet errors

Problem:
Receiving Puppet errors when you look at host reports:
Puppet Could not set ‘file’ on ensure: incorrect header check
Could not set ‘file’ on ensure: incorrect header check
Wrapped exception:
incorrect header check
/File[/var/lib/puppet/lib/puppet/parser/functions/ensure_packages.rb]/ensure
change from absent to file failed: Could not set ‘file’ on ensure: incorrect header check

Foreman and Proxy versions: v1.24

Foreman and Proxy plugin versions: Ansible integration with Foreman Daniel Lobato Garcia 4.0.3

This looks like an actual error reported by your puppet server to foreman, not an issue in foreman itself. Check the puppet class is correctly defined and has no errors.