minor fix
This commit is contained in:
parent
45df525a37
commit
937cd2cd82
1 changed files with 1 additions and 1 deletions
|
@ -1056,7 +1056,7 @@ class VirtualMachineView(LoginRequiredMixin, View):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
vm_data = VirtualMachineSerializer(manager.get_vm(vm.id)).data
|
vm_data = VirtualMachineSerializer(manager.get_vm(vm.id)).data
|
||||||
vm_name = vm_data.name
|
vm_name = vm_data.get('name')
|
||||||
except WrongIdError:
|
except WrongIdError:
|
||||||
return redirect(reverse('hosting:virtual_machines'))
|
return redirect(reverse('hosting:virtual_machines'))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue