Skip to content

Commit 2449426

Browse files
committed
Raise exception on missing augeasproviders_core
People who manage their code with r10k have to resolve dependencies by hand (or using a generator), as such we now helpfully raise an exception when miaugeasproviders_core is missing.
1 parent 6b70535 commit 2449426

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/puppet/provider/pg_hba/augeas.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Alternative Augeas-based provider for pg_hba type
22

3+
raise("Missing augeasproviders_core dependency") if Puppet::Type.type(:augeasprovider).nil?
34
Puppet::Type.type(:pg_hba).provide(:augeas, :parent => Puppet::Type.type(:augeasprovider).provider(:default)) do
45
desc "Uses Augeas API to update pg_hba settings"
56

0 commit comments

Comments
 (0)