use _get_cron_cmdstr() in _write_cron_lines()

This commit is contained in:
Erik Johnson 2012-10-01 19:09:27 -05:00
parent 975c5e3f9e
commit 56cd4ad17d

View File

@ -80,8 +80,7 @@ def _write_cron_lines(user, lines):
os.close(fd_)
with open(path, 'w+') as fp_:
fp_.writelines(lines)
cmd = 'crontab -u {0} {1}'.format(user, path)
ret = __salt__['cmd.run_all'](cmd)
ret = __salt__['cmd.run_all'](_get_cron_cmdstr(user, path))
os.remove(path)
return ret