1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-26 08:05:22 +00:00

fix redirection for network connection error

This commit is contained in:
catborise 2019-09-11 11:12:33 +03:00
parent caf00bd4f9
commit 0fdc2dae33

View file

@ -94,6 +94,7 @@ def network(request, compute_id, pool):
xml = conn._XMLDesc(0) xml = conn._XMLDesc(0)
except libvirtError as lib_err: except libvirtError as lib_err:
error_messages.append(lib_err) error_messages.append(lib_err)
return HttpResponseRedirect(reverse('networks', args=compute_id))
if request.method == 'POST': if request.method == 'POST':
if 'start' in request.POST: if 'start' in request.POST: