From 576219c2e24e6bbaf736696dcbc7df83efef6572 Mon Sep 17 00:00:00 2001 From: Jeff Hui Date: Thu, 16 Aug 2012 23:48:33 -0700 Subject: [PATCH] Fixed keyerror when running cron.set_special. --- salt/modules/cron.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/modules/cron.py b/salt/modules/cron.py index 835a8e2c07..0ff4119777 100644 --- a/salt/modules/cron.py +++ b/salt/modules/cron.py @@ -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))