mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
When a cron with trailing whitespace is sent in it fails to match
This strip will fix #2202
This commit is contained in:
parent
c1fc9d6726
commit
4177087097
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user