Fixes syntax error in cron module caused by #6870
This commit is contained in:
parent
26ce8dac27
commit
899ba4c9bb
1 changed files with 1 additions and 1 deletions
|
@ -353,7 +353,7 @@ class CronTab(object):
|
||||||
if platform.system() == 'SunOS':
|
if platform.system() == 'SunOS':
|
||||||
return "su %s -c '%s -l'" % (pipes.quote(self.user), pipes.quote(CRONCMD))
|
return "su %s -c '%s -l'" % (pipes.quote(self.user), pipes.quote(CRONCMD))
|
||||||
elif platform.system() == 'AIX':
|
elif platform.system() == 'AIX':
|
||||||
return "%s -l %s" % (pipes.quote(CRONCMD), (pipes.quote(self.user))
|
return "%s -l %s" % (pipes.quote(CRONCMD), pipes.quote(self.user))
|
||||||
else:
|
else:
|
||||||
user = '-u %s' % pipes.quote(self.user)
|
user = '-u %s' % pipes.quote(self.user)
|
||||||
return "%s %s %s" % (CRONCMD , user, '-l')
|
return "%s %s %s" % (CRONCMD , user, '-l')
|
||||||
|
|
Loading…
Reference in a new issue