Skip to content

Commit

Permalink
(#12345) hiera enabled function for stdlib
Browse files Browse the repository at this point in the history
removing extraneous code that was commented out
  • Loading branch information
Garrett Honeycutt committed Jan 31, 2012
1 parent d54fa78 commit a78cdf2
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/puppet/parser/functions/hiera_enabled.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
module Puppet::Parser::Functions
newfunction(:hiera_enabled, :type => :rvalue ) do
# begin
# require 'hiera'
# true if Puppet::Parser::Functions.function 'hiera'
# rescue LoadError => e
# false
# end
#true if Puppet.features.hiera?
if Puppet.features.hiera? and Puppet::Parser::Functions.function(:hiera)
true
else
Expand Down

0 comments on commit a78cdf2

Please sign in to comment.