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

fix create instance log error

This commit is contained in:
catborise 2021-07-12 13:12:53 +03:00 committed by catborise
parent 5c9b9ce15f
commit 2e3480677c

View file

@ -1486,7 +1486,7 @@ def create_instance(request, compute_id, arch, machine):
create_instance.save() create_instance.save()
msg = _("Instance is created") msg = _("Instance is created")
messages.success(request, msg) messages.success(request, msg)
addlogmsg(request.user.username, create_instance.name, msg) addlogmsg(request.user.username, create_instance.compute.name, create_instance.name, msg)
return redirect(reverse("instances:instance", args=[create_instance.id])) return redirect(reverse("instances:instance", args=[create_instance.id]))
except libvirtError as lib_err: except libvirtError as lib_err:
if data["hdd_size"] or len(volume_list) > 0: if data["hdd_size"] or len(volume_list) > 0: