See https://github.com/puppetlabs/bolt/issues/2051 for details
Merged to main in https://github.com/puppetlabs/puppet/commit/0af4e1b89564287a6d560588c0f512281badbc7c
Merged to master (6.x) in https://github.com/puppetlabs/puppet/commit/ee2f5756662a8a73ad291efc11ee417c5b532772