Please review pull request #33: just applied the patch from issue #10975, could you please release a minor update? thx opened by (mindreframer)

Description:

  • Opened: Sat Feb 11 18:59:18 UTC 2012
  • Based on: puppetlabs:master (81cd80cfa9c008665a229d0d034186c3a8692bb8)
  • Requested merge: mindreframer:master (50f977127fe4fdaaee2bba9b3088455fcd4a2a7d)

Diff follows:

diff --git a/lib/hiera/backend.rb b/lib/hiera/backend.rb
index 3f593b1..e0c7c85 100644
--- a/lib/hiera/backend.rb
+++ b/lib/hiera/backend.rb
@@ -155,7 +155,7 @@ def lookup(key, default, scope, order_override, resolution_type)
         answer = nil
 
         Config[:backends].each do |backend|
-          if constants.include?("#{backend.capitalize}_backend")
+          if constants.include?("#{backend.capitalize}_backend") || constants.include?("#{backend.capitalize}_backend".to_sym)
             @backends[backend] ||= Backend.const_get("#{backend.capitalize}_backend").new
             answer = @backends[backend].lookup(key, scope, order_override, resolution_type)
 

    

--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to