The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

filetype_rb.patch

Kent Holloway, 01/04/2011 06:45 pm

Download (549 Bytes)

View differences:

filetype_new.rb Tue Jan 4 11:32:11 2011
204 204
  newfiletype(:suntab) do
205 205
    # Read a specific @path's cron tab.
206 206
    def read
207
        output = Puppet::Util.execute(%w{crontab -l}, :uid => @path)
207
	output = Puppet::Util.execute(%W{crontab -l #{path} }, :uid => 'root')
208 208
        return "" if output.include?("can't open your crontab")
209 209
        raise Puppet::Error, "User #{@path} not authorized to use cron" if output.include?("you are not authorized to use cron")
210 210
        return output