mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Strip only newlines and carriage returns. Instead of stripping ALL whitespace, which may have unintended side effects
This commit is contained in:
parent
766413e79d
commit
3a44d60fbc
1 changed files with 3 additions and 0 deletions
|
@ -383,6 +383,9 @@ class CronTab(object):
|
|||
return []
|
||||
|
||||
def get_cron_job(self,minute,hour,day,month,weekday,job,special,disabled):
|
||||
# normalize any leading/trailing newlines (ansible/ansible-modules-core#3791)
|
||||
job = job.strip('\r\n')
|
||||
|
||||
if disabled:
|
||||
disable_prefix = '#'
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue