From 0fdc2dae3355497fd44fed3043defb3c63efa848 Mon Sep 17 00:00:00 2001 From: catborise Date: Wed, 11 Sep 2019 11:12:33 +0300 Subject: [PATCH] fix redirection for network connection error --- networks/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/networks/views.py b/networks/views.py index abd06b0..71a0b9a 100644 --- a/networks/views.py +++ b/networks/views.py @@ -94,6 +94,7 @@ def network(request, compute_id, pool): xml = conn._XMLDesc(0) except libvirtError as lib_err: error_messages.append(lib_err) + return HttpResponseRedirect(reverse('networks', args=compute_id)) if request.method == 'POST': if 'start' in request.POST: