diff --git a/django/apps/blue_management/blue_mgnt/views/settings.py b/django/apps/blue_management/blue_mgnt/views/settings.py index c7b93c1..7f9eaa5 100644 --- a/django/apps/blue_management/blue_mgnt/views/settings.py +++ b/django/apps/blue_management/blue_mgnt/views/settings.py @@ -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')