mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Fixed keyerror when running cron.set_special.
This commit is contained in:
parent
da954be595
commit
576219c2e2
@ -148,7 +148,7 @@ def set_special(user, special, cmd):
|
||||
for spec in lst['special']:
|
||||
if special == cron['special'] and cmd == cron['cmd']:
|
||||
return 'present'
|
||||
spec = {'special': special,
|
||||
spec = {'spec': special,
|
||||
'cmd': cmd}
|
||||
lst['special'].append(spec)
|
||||
comdat = _write_cron(user, _render_tab(lst))
|
||||
|
Loading…
Reference in New Issue
Block a user