Merge pull request #531 from asasfu/improvement/service_provider_fact

fixup-PR#506 Speed improvements in facter resolution
This commit is contained in:
David Schmitt 2015-09-28 10:09:17 +01:00
commit 39e81aa8b5

View file

@ -7,6 +7,9 @@
#
# Caveats:
#
require 'puppet/type'
require 'puppet/type/service'
Facter.add(:service_provider) do
setcode do
Puppet::Type.type(:service).newservice(:name => 'dummy')[:provider].to_s