Getting VM name for serializer data, hence fixing the problem of public- appearing in VM cancellation email
This commit is contained in:
parent
be55e2613d
commit
1d5f92f7e1
1 changed files with 2 additions and 2 deletions
|
@ -933,7 +933,7 @@ class VirtualMachineView(LoginRequiredMixin, View):
|
|||
email=owner.email,
|
||||
password=owner.password
|
||||
)
|
||||
|
||||
vm_data = VirtualMachineSerializer(manager.get_vm(vm.id)).data
|
||||
terminated = manager.delete_vm(
|
||||
vm.id
|
||||
)
|
||||
|
@ -945,7 +945,7 @@ class VirtualMachineView(LoginRequiredMixin, View):
|
|||
)
|
||||
return HttpResponseRedirect(self.get_success_url())
|
||||
context = {
|
||||
'vm': vm,
|
||||
'vm': vm_data,
|
||||
'base_url': "{0}://{1}".format(self.request.scheme,
|
||||
self.request.get_host()),
|
||||
'page_header': _('Virtual Machine Cancellation')
|
||||
|
|
Loading…
Reference in a new issue