Skip to content

Commit

Permalink
Fix invocation of cron.file with when run with test=True
Browse files Browse the repository at this point in the history
  • Loading branch information
eradman committed Nov 27, 2017
1 parent b29300e commit c729eef
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions salt/states/cron.py
Expand Up @@ -392,9 +392,9 @@ def absent(name,
The special keyword used in the job (eg. @reboot, @hourly...).
Quotes must be used, otherwise PyYAML will strip the '@' sign.
'''
### NOTE: The keyword arguments in **kwargs are ignored in this state, but
### cannot be removed from the function definition, otherwise the use
### of unsupported arguments will result in a traceback.
# NOTE: The keyword arguments in **kwargs are ignored in this state, but
# cannot be removed from the function definition, otherwise the use
# of unsupported arguments will result in a traceback.

name = name.strip()
if identifier is False:
Expand Down Expand Up @@ -566,6 +566,7 @@ def file(name,
user,
group,
mode,
[], # no special attrs for cron
template,
context,
defaults,
Expand Down

0 comments on commit c729eef

Please sign in to comment.