From 8cb100be793ef5f2399116b4d2c7a0ab4cac3723 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sun, 17 Oct 2021 22:15:12 -0700 Subject: [PATCH] email_server: yapf formatting Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/email_server/audit/tls.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plinth/modules/email_server/audit/tls.py b/plinth/modules/email_server/audit/tls.py index 96e7d9ab4..55d92ca57 100644 --- a/plinth/modules/email_server/audit/tls.py +++ b/plinth/modules/email_server/audit/tls.py @@ -168,8 +168,8 @@ def write_dovecot_cert_config(cert, key): def check_postfix_cert_usage(title=''): prefix = '/etc/letsencrypt/live/' diagnosis = models.Diagnosis(title, action='set_cert') - conf = postconf.get_many_unsafe(['smtpd_tls_cert_file', - 'smtpd_tls_key_file']) + conf = postconf.get_many_unsafe( + ['smtpd_tls_cert_file', 'smtpd_tls_key_file']) if not conf['smtpd_tls_cert_file'].startswith(prefix): diagnosis.error("Cert file not in Let's Encrypt directory") if not conf['smtpd_tls_key_file'].startswith(prefix): @@ -197,7 +197,7 @@ def action_set_cert(): def action_check(): - checks = ('cert_availability',) + checks = ('cert_availability', ) results = [] for check_name in checks: check_function = globals()['su_check_' + check_name]