See https://github.com/puppetlabs/puppet/pull/1700#r4819620