security: minor style fixes

This commit is contained in:
James Valleroy 2017-07-29 09:49:14 -04:00
parent a8a5da996e
commit 276dac2df2
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
2 changed files with 3 additions and 4 deletions

View File

@ -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.'))

View File

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