diff --git a/salt/states/cron.py b/salt/states/cron.py index 022327cb7d..22a50737d3 100644 --- a/salt/states/cron.py +++ b/salt/states/cron.py @@ -296,7 +296,7 @@ def present(name, return ret if data == 'updated': - ret['comment'] = 'Cron {0} updated'.format(name, user) + ret['comment'] = 'Cron {0} updated'.format(name) ret['changes'] = {user: name} return ret ret['comment'] = ('Cron {0} for user {1} failed to commit with error \n{2}' @@ -576,7 +576,7 @@ def env_present(name, return ret if data == 'updated': - ret['comment'] = 'Cron env {0} updated'.format(name, user) + ret['comment'] = 'Cron env {0} updated'.format(name) ret['changes'] = {user: name} return ret ret['comment'] = ('Cron env {0} for user {1} failed to commit with error \n{2}'