lib/puppet/provider/cron/filetype.rb
def cmdbase
        return 'crontab' if @uid == Puppet::Util::SUIDManager.uid || Facter.value(:operatingsystem) == 'HP-UX'

        "crontab -u #{@path}"
      end
# Only add the -u flag when the @path is different.  Fedora apparently
# does not think I should be allowed to set the @path to my own user name
Only add the -u flag when the @path is different.  Fedora apparently
does not think I should be allowed to set the @path to my own user name
Only add the - u flag when the @path is different . Fedora apparently does not think I should be allowed to set the @path to my own user name
def cmdbase
        return 'crontab' if @uid == Puppet::Util::SUIDManager.uid || Facter.value(:operatingsystem) == 'HP-UX'
        "crontab -u #{@path}"
      end
def cmdbase return 'crontab' if @uid == Puppet :: Util :: SUIDManager . uid || Facter . value ( :operatingsystem ) == 'HP-UX' "crontab -u #{@path}" end
Only add the -u flag when the @path is different.
Only add the - u flag when the @path is different .