From 6ab32e169728286acfa06e15cb7d23a1b74e4038 Mon Sep 17 00:00:00 2001 From: catborise Date: Wed, 22 Jul 2020 16:09:49 +0300 Subject: [PATCH] fix missing uuid record on db while creating instance --- instances/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instances/views.py b/instances/views.py index 5f0428c..d0e8c04 100644 --- a/instances/views.py +++ b/instances/views.py @@ -1409,7 +1409,7 @@ def create_instance(request, compute_id, arch, machine): console_pass=data["console_pass"], mac=data['mac'], qemu_ga=data['qemu_ga']) - create_instance = Instance(compute_id=compute_id, name=data['name']) + create_instance = Instance(compute_id=compute_id, name=data['name'], uuid=uuid) create_instance.save() msg = _("Instance is created") messages.success(request, msg)