mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
use _get_cron_cmdstr() in _write_cron_lines()
This commit is contained in:
parent
975c5e3f9e
commit
56cd4ad17d
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user