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

host ifaces configuration error prevents management of instance. It is isolated.

This commit is contained in:
catborise 2019-12-24 09:23:49 +03:00
parent 592112590c
commit 01f2290dd9

View file

@ -343,10 +343,15 @@ def instance(request, compute_id, vname):
bus_host = conn.get_disk_bus_types(arch, machine)
videos_host = conn.get_video_models(arch, machine)
networks_host = sorted(conn.get_networks())
interfaces_host = sorted(conn.get_ifaces())
nwfilters_host = conn.get_nwfilters()
storages_host = sorted(conn.get_storages(True))
try:
interfaces_host = sorted(conn.get_ifaces())
except Exception as e:
addlogmsg(request.user.username, instance.name, e)
error_messages.append(e)
if request.method == 'POST':
if 'poweron' in request.POST:
if instance.is_template: