Merge pull request #20433 from rallytime/bp-20386

Backport #20386 to 2014.7
This commit is contained in:
Nicole Thomas 2015-02-06 07:52:23 -07:00
commit debb844cca

View File

@ -213,6 +213,10 @@ def raw_cron(user):
'''
if __grains__.get('os_family') in ('Solaris', 'AIX'):
cmd = 'crontab -l {0}'.format(user)
lines = __salt__['cmd.run_stdout'](cmd,
runas=user,
rstrip=False,
python_shell=False).splitlines()
else:
cmd = 'crontab -l -u {0}'.format(user)
lines = __salt__['cmd.run_stdout'](cmd,