use instance debug instead of Puppet.debug
The instance method prepends resource information to the debug message.
Example of Puppet.debug:
Debug: Searching for hostgroup with name dev and title dev
Example of instance #debug:
Debug: Foreman_hostgroup[dev](provider=rest_v3): Making get request to ...
use instance debug instead of Puppet.debug
The instance method prepends resource information to the debug message.
Example of Puppet.debug:
Example of instance #debug: