From 49142808681c9f1ea29394a2cdc504ad851e7596 Mon Sep 17 00:00:00 2001 From: PCoder Date: Sat, 8 Sep 2018 10:14:57 +0200 Subject: [PATCH] Set text for vm terminate timeout --- hosting/views.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/hosting/views.py b/hosting/views.py index c16b6d07..4e010b3e 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -1431,10 +1431,12 @@ class VirtualMachineView(LoginRequiredMixin, View): else: sleep(2) if not response['status']: - response['details'] = ( - "Called VM terminate xml-rpc and waited for over " - "30 seconds for the VM to disappear. But, it did " - "not happen. So, please verify!" + response['text'] = _( + ("VM terminate action timed-out. Please contact support " + "{support_email}" + "for further information.").format( + support_email=settings.DCL_SUPPORT_FROM_ADDRESS + ) ) context = { 'vm_name': vm_name,