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:
David Boucha 2012-10-26 15:22:46 -06:00
parent fc16768c92
commit 805e4c64a6

View File

@ -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,