Merge pull request #531 from asasfu/improvement/service_provider_fact
fixup-PR#506 Speed improvements in facter resolution
This commit is contained in:
commit
39e81aa8b5
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue