When a cron with trailing whitespace is sent in it fails to match

This strip will fix #2202
This commit is contained in:
Thomas S Hatch 2012-10-15 23:03:43 -06:00
parent c1fc9d6726
commit 4177087097

View File

@ -32,9 +32,10 @@ Is changed to this:
Then the existing cron will be updated, but if the cron command is changed,
then a new cron job will be added to the user's crontab.
'''
# Import python libs
import os
def _check_cron(cmd, user, minute, hour, dom, month, dow):
'''
Return the changes
@ -112,6 +113,7 @@ def present(name,
The information to be set in the day of day of week section. Default is
``*``
'''
name = name.strip()
ret = {'changes': {},
'comment': '',
'name': name,