Convert lazy loaded string to str

This commit is contained in:
PCoder 2019-09-24 09:44:45 +05:30
parent 4dd49051b4
commit 8cd7a69162
1 changed files with 4 additions and 3 deletions

View File

@ -1619,9 +1619,10 @@ class VirtualMachineView(LoginRequiredMixin, View):
else:
sleep(2)
if not response['status']:
response['text'] = _("VM terminate action timed out. Please "
"contact support@datacenterlight.ch for "
"further information.")
response['text'] = str(_("VM terminate action timed out. "
"Please contact "
"support@datacenterlight.ch for "
"further information."))
context = {
'vm_name': vm_name,
'base_url': "{0}://{1}".format(