diff options
| author | James Turnbull <james@lovedthanlost.net> | 2008-05-24 10:10:39 +1000 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2008-05-24 10:10:39 +1000 |
| commit | 6c3e7e1b547ba2040e8ff5d5011605c1df7c4681 (patch) | |
| tree | fb7e35ff48f1b673eec01a727f164cdaa2febf0e /lib | |
| parent | c173264408e8f2dbb7a72e984a4cbce4637f3c0c (diff) | |
| download | puppet-6c3e7e1b547ba2040e8ff5d5011605c1df7c4681.tar.gz puppet-6c3e7e1b547ba2040e8ff5d5011605c1df7c4681.tar.xz puppet-6c3e7e1b547ba2040e8ff5d5011605c1df7c4681.zip | |
Reverted function - "Added cron random function fixing ticket #311"
This reverts commit d54338f8921b4b2973dcde52576d7e9fa58148cb.
Diffstat (limited to 'lib')
| -rwxr-xr-x | lib/puppet/type/cron.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/puppet/type/cron.rb b/lib/puppet/type/cron.rb index 9f1e7c42c..c46a7c83b 100755 --- a/lib/puppet/type/cron.rb +++ b/lib/puppet/type/cron.rb @@ -390,21 +390,6 @@ Puppet::Type.newtype(:cron) do } end - newfunction(:fqdn_rand, :type => :rvalue, :doc => "Generates random numbers - based on the node's fqdn. The first argument sets the range. The second - argument specifies a number to add to the seed and is optional.") do |args| - require 'md5' - max = args[0] - if args[1] then - seed = args[1] - else - seed = 1 - end - fqdn_seed = MD5.new(lookupvar('fqdn')).to_s.hex - srand(seed+fqdn_seed) - rand(max).to_s - end - # We have to reorder things so that :provide is before :target attr_accessor :uid |
