Skip to content

Commit

Permalink
fix syntax error in settings.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bdzim committed Sep 12, 2018
1 parent 8b8f979 commit c670a97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/apps/blue_management/blue_mgnt/views/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def clean(self):
command_output = ''

if request.method == 'POST' and request.user.has_perm('blue_mgnt.can_manage_settings'):
elif request.POST.get('form', '') == 'reboot':
if request.POST.get('form', '') == 'reboot':
log_admin_action(request, 'reboot management vm')
subprocess.call(['shutdown', '-r', 'now'])
return redirect('blue_mgnt:settings_saved')
Expand Down

0 comments on commit c670a97

Please sign in to comment.