changeset 2951:c8cd5c30fb2e

tools (email): fixed bad default value while reading config
author Goffi <goffi@goffi.org>
date Tue, 14 May 2019 20:16:45 +0200
parents fdd7285ddd83
children d8857e913309
files sat/tools/email.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/sat/tools/email.py	Tue May 14 19:23:05 2019 +0200
+++ b/sat/tools/email.py	Tue May 14 20:16:45 2019 +0200
@@ -50,8 +50,8 @@
     email_port = int(host.memory.getConfig(None, u"email_port", 25))
     email_username = host.memory.getConfig(None, u"email_username")
     email_password = host.memory.getConfig(None, u"email_password")
-    email_auth = C.bool(host.memory.getConfig(None, "email_auth", False))
-    email_starttls = C.bool(host.memory.getConfig(None, "email_starttls", False))
+    email_auth = C.bool(host.memory.getConfig(None, "email_auth", C.BOOL_FALSE))
+    email_starttls = C.bool(host.memory.getConfig(None, "email_starttls", C.BOOL_FALSE))
 
     msg = MIMEText(body, "plain", "UTF-8")
     msg[u"Subject"] = subject