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'])