Set text for vm terminate timeout

This commit is contained in:
PCoder 2018-09-08 10:14:57 +02:00
parent ce2d34350f
commit 4914280868

View file

@ -1431,10 +1431,12 @@ class VirtualMachineView(LoginRequiredMixin, View):
else: else:
sleep(2) sleep(2)
if not response['status']: if not response['status']:
response['details'] = ( response['text'] = _(
"Called VM terminate xml-rpc and waited for over " ("VM terminate action timed-out. Please contact support "
"30 seconds for the VM to disappear. But, it did " "{support_email}"
"not happen. So, please verify!" "for further information.").format(
support_email=settings.DCL_SUPPORT_FROM_ADDRESS
)
) )
context = { context = {
'vm_name': vm_name, 'vm_name': vm_name,