From 2e3480677c73049be302eed72e12a5045497077b Mon Sep 17 00:00:00 2001 From: catborise Date: Mon, 12 Jul 2021 13:12:53 +0300 Subject: [PATCH] fix create instance log error --- instances/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instances/views.py b/instances/views.py index 6669aa9..16aa323 100644 --- a/instances/views.py +++ b/instances/views.py @@ -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: