Revert back errors
This commit is contained in:
parent
4bff49dab6
commit
af36a49366
1 changed files with 2 additions and 2 deletions
|
@ -1787,7 +1787,7 @@ class VirtualMachineView(LoginRequiredMixin, View):
|
||||||
try:
|
try:
|
||||||
manager.get_vm(vm.id)
|
manager.get_vm(vm.id)
|
||||||
except WrongIdError:
|
except WrongIdError:
|
||||||
logger.debug(
|
logger.error(
|
||||||
"VM {} not found. So, its terminated.".format(vm.id)
|
"VM {} not found. So, its terminated.".format(vm.id)
|
||||||
)
|
)
|
||||||
response['status'] = True
|
response['status'] = True
|
||||||
|
@ -1798,7 +1798,7 @@ class VirtualMachineView(LoginRequiredMixin, View):
|
||||||
vm_detail_obj.terminated_at = datetime.utcnow()
|
vm_detail_obj.terminated_at = datetime.utcnow()
|
||||||
vm_detail_obj.save()
|
vm_detail_obj.save()
|
||||||
except BaseException as base_exception:
|
except BaseException as base_exception:
|
||||||
logger.debug(
|
logger.error(
|
||||||
"manager.get_vm({vm_id}) returned exception: "
|
"manager.get_vm({vm_id}) returned exception: "
|
||||||
"{details}.".format(
|
"{details}.".format(
|
||||||
details=str(base_exception), vm_id=vm.id
|
details=str(base_exception), vm_id=vm.id
|
||||||
|
|
Loading…
Add table
Reference in a new issue