exclude submitter IP and email from exception emals for privacy

user-mgmt
Hartmut Holzgraefe 2022-04-06 09:44:36 +02:00
rodzic 5368b08f6c
commit faa5051395
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -343,9 +343,11 @@ class JobRenderer(threading.Thread):
for k in sorted(self.job.__dict__.keys()):
# We don't care about state that much, especially since it
# doesn't display well
if k != '_state':
# for privacy reasons we remove submitter email and ip
if k != '_state' and k != 'submitterip' and k != 'submittermail':
jobinfo.append(' %s: %s' % (k, str(self.job.__dict__[k])))
template = get_template("render_email_exception.txt")
context = { 'from': DAEMON_ERRORS_EMAIL_FROM,
'replyto': DAEMON_ERRORS_EMAIL_REPLY_TO,