mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-24 15:15:22 +00:00
fix create instance log error
This commit is contained in:
parent
5c9b9ce15f
commit
2e3480677c
1 changed files with 1 additions and 1 deletions
|
@ -1486,7 +1486,7 @@ def create_instance(request, compute_id, arch, machine):
|
|||
create_instance.save()
|
||||
msg = _("Instance is created")
|
||||
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]))
|
||||
except libvirtError as lib_err:
|
||||
if data["hdd_size"] or len(volume_list) > 0:
|
||||
|
|
Loading…
Reference in a new issue