More bugfixes from puppet.
This commit is contained in:
parent
31886898e2
commit
7f129c1d86
1 changed files with 3 additions and 3 deletions
|
@ -64,14 +64,14 @@ def send_email(name, md5, filename, username):
|
||||||
(filename, name, md5, username)
|
(filename, name, md5, username)
|
||||||
msg = MIMEText(text)
|
msg = MIMEText(text)
|
||||||
sender = 'nobody@fedoraproject.org'
|
sender = 'nobody@fedoraproject.org'
|
||||||
recepients = [ '%s-owner@fedoraproject.org' % name, \
|
recipients = [ '%s-owner@fedoraproject.org' % name, \
|
||||||
'fedora-extras-commits@redhat.com' ]
|
'fedora-extras-commits@redhat.com' ]
|
||||||
msg['Subject'] = 'File %s uploaded to lookaside cache by %s' % ( filename, username)
|
msg['Subject'] = 'File %s uploaded to lookaside cache by %s' % ( filename, username)
|
||||||
msg['From'] = sender
|
msg['From'] = sender
|
||||||
msg['To'] = recepients
|
msg['To'] = ', '.join(recipients)
|
||||||
try:
|
try:
|
||||||
s = smtplib.SMTP()
|
s = smtplib.SMTP()
|
||||||
s.sendmail(sender, recepients, msg.as_string())
|
s.sendmail(sender, recipients, msg.as_string())
|
||||||
except:
|
except:
|
||||||
syslog.syslog('sending mail for upload of %s failed!' % filename)
|
syslog.syslog('sending mail for upload of %s failed!' % filename)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue