mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Fixes #2325 Remove extra spaces before comparison
This fix removes extra spaces in a command before comparing to previous commands. This will cron.present from needlessly appending the same cron job over and over.
This commit is contained in:
parent
fc16768c92
commit
805e4c64a6
@ -113,7 +113,7 @@ def present(name,
|
||||
The information to be set in the day of day of week section. Default is
|
||||
``*``
|
||||
'''
|
||||
name = name.strip()
|
||||
name = ' '.join(name.strip().split())
|
||||
ret = {'changes': {},
|
||||
'comment': '',
|
||||
'name': name,
|
||||
|
Loading…
Reference in New Issue
Block a user