From 276dac2df263b0478327a9722d30b0b9b0766b47 Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Sat, 29 Jul 2017 09:49:14 -0400 Subject: [PATCH] security: minor style fixes --- plinth/modules/security/forms.py | 3 +-- plinth/modules/security/views.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/plinth/modules/security/forms.py b/plinth/modules/security/forms.py index 343b4aff4..a9f1cfee9 100644 --- a/plinth/modules/security/forms.py +++ b/plinth/modules/security/forms.py @@ -35,5 +35,4 @@ class SecurityForm(forms.Form): label=_('Fail2ban (recommended)'), required=False, help_text=_('When this option is enabled, fail2ban will limit brute force ' 'break-in attempts to the SSH server and other password protected ' - 'internet-services which are enabled.' - )) + 'internet-services which are enabled.')) diff --git a/plinth/modules/security/views.py b/plinth/modules/security/views.py index 150ebb6bb..fcbec3863 100644 --- a/plinth/modules/security/views.py +++ b/plinth/modules/security/views.py @@ -70,6 +70,6 @@ def _apply_changes(request, old_status, new_status): if old_status['fail2ban_enabled'] != new_status['fail2ban_enabled']: if new_status['fail2ban_enabled']: - actions.superuser_run('service',['enable','fail2ban']) + actions.superuser_run('service', ['enable', 'fail2ban']) else: - actions.superuser_run('service',['disable','fail2ban']) + actions.superuser_run('service', ['disable', 'fail2ban'])