diff options
| author | Matt Robinson <matt@puppetlabs.com> | 2011-04-13 15:00:56 -0700 |
|---|---|---|
| committer | Matt Robinson <matt@puppetlabs.com> | 2011-04-13 15:04:09 -0700 |
| commit | 4ef622e0874c53c8060531d43da06f0fd6fddc36 (patch) | |
| tree | 24be11a1aa3b7e8d2cce066b8c106dfc1e10443a /lib/puppet/parser | |
| parent | 64c12bd7ef38979ff756f97fc72adc737fe7b608 (diff) | |
| download | puppet-4ef622e0874c53c8060531d43da06f0fd6fddc36.tar.gz puppet-4ef622e0874c53c8060531d43da06f0fd6fddc36.tar.xz puppet-4ef622e0874c53c8060531d43da06f0fd6fddc36.zip | |
(#6830) Fix sha1 to digest/sha1 require issue for Ruby 1.9
Reviewed-by: Daniel Pittman <daniel@puppetlabs.com>
Diffstat (limited to 'lib/puppet/parser')
| -rw-r--r-- | lib/puppet/parser/functions/sha1.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/parser/functions/sha1.rb b/lib/puppet/parser/functions/sha1.rb index 10cc55cfe..1e7d5abe4 100644 --- a/lib/puppet/parser/functions/sha1.rb +++ b/lib/puppet/parser/functions/sha1.rb @@ -1,5 +1,5 @@ Puppet::Parser::Functions::newfunction(:sha1, :type => :rvalue, :doc => "Returns a SHA1 hash value from a provided string.") do |args| - require 'sha1' + require 'digest/sha1' Digest::SHA1.hexdigest(args[0]) end |
