diff --git a/datacenterlight/tasks.py b/datacenterlight/tasks.py index 61c6fb4b..3869a409 100644 --- a/datacenterlight/tasks.py +++ b/datacenterlight/tasks.py @@ -128,7 +128,7 @@ def create_vm_task(self, vm_template_id, user, specs, template, 'storage': specs.get('disk_size'), 'price': specs.get('price'), 'template': template.get('name'), - 'vm_name': vm['name'], + 'vm_name': vm.get('name'), 'vm_id': vm['vm_id'], 'order_id': order.id } diff --git a/hosting/templates/hosting/emails/new_booked_vm.html b/hosting/templates/hosting/emails/new_booked_vm.html index 7ed963c6..bda0964e 100644 --- a/hosting/templates/hosting/emails/new_booked_vm.html +++ b/hosting/templates/hosting/emails/new_booked_vm.html @@ -19,7 +19,7 @@