diff options
author | David Schmitt <david.schmitt@puppetlabs.com> | 2015-09-28 10:09:17 +0100 |
---|---|---|
committer | David Schmitt <david.schmitt@puppetlabs.com> | 2015-09-28 10:09:17 +0100 |
commit | 39e81aa8b51c6562e498cdc562826eee470d841e (patch) | |
tree | b4a9c1f5a202d76393522036bca87a8e225d332a /lib/facter | |
parent | 4d1bca3359519e6303d9b3543c56426606c8eba3 (diff) | |
parent | 440245d40d90f5f5cd9d7db0131371969216e55c (diff) | |
download | puppet-stdlib-39e81aa8b51c6562e498cdc562826eee470d841e.tar.gz puppet-stdlib-39e81aa8b51c6562e498cdc562826eee470d841e.tar.bz2 |
Merge pull request #531 from asasfu/improvement/service_provider_fact
fixup-PR#506 Speed improvements in facter resolution
Diffstat (limited to 'lib/facter')
-rw-r--r-- | lib/facter/service_provider.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/facter/service_provider.rb b/lib/facter/service_provider.rb index 54db937..a117921 100644 --- a/lib/facter/service_provider.rb +++ b/lib/facter/service_provider.rb @@ -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 |