Fixed keyerror when running cron.set_special.

This commit is contained in:
Jeff Hui 2012-08-16 23:48:33 -07:00
parent da954be595
commit 576219c2e2

View File

@ -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))