fix use of deprecated API

see following puppet commit for more information:
https://github.com/puppetlabs/puppet/commit/895de3b418c294326ef2ea65002aeca4a40e27a8