From 937cd2cd829fb0c0e525fe05271381b39080d157 Mon Sep 17 00:00:00 2001 From: Arvind Tiwari Date: Wed, 27 Sep 2017 03:41:18 +0530 Subject: [PATCH] minor fix --- hosting/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosting/views.py b/hosting/views.py index f994181e..0db4ad39 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -1056,7 +1056,7 @@ class VirtualMachineView(LoginRequiredMixin, View): try: vm_data = VirtualMachineSerializer(manager.get_vm(vm.id)).data - vm_name = vm_data.name + vm_name = vm_data.get('name') except WrongIdError: return redirect(reverse('hosting:virtual_machines'))