diff options
author | David Schmitt <david@schmitt.edv-bus.at> | 2007-11-11 09:55:01 +0100 |
---|---|---|
committer | David Schmitt <david@schmitt.edv-bus.at> | 2007-11-11 09:55:01 +0100 |
commit | a6ad326f71b8aaa0bce40c4d6c29195c53ec1d1f (patch) | |
tree | 094a2410669f70e2b320a9ce440213bb9ac35a09 | |
parent | d48ee3e0f61bad913b4c050e9542b409fdd27e43 (diff) | |
download | puppet-a6ad326f71b8aaa0bce40c4d6c29195c53ec1d1f.tar.gz puppet-a6ad326f71b8aaa0bce40c4d6c29195c53ec1d1f.tar.xz puppet-a6ad326f71b8aaa0bce40c4d6c29195c53ec1d1f.zip |
fix the underlying dependency on the environment in the cron type
-rwxr-xr-x | lib/puppet/type/cron.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/type/cron.rb b/lib/puppet/type/cron.rb index 3154098db..17cb1667f 100755 --- a/lib/puppet/type/cron.rb +++ b/lib/puppet/type/cron.rb @@ -348,7 +348,7 @@ Puppet::Type.newtype(:cron) do The user defaults to whomever Puppet is running as." - defaultto { ENV["USER"] || "root" } + defaultto { Etc.getpwuid(Process.uid).name || "root" } end newproperty(:target) do |