Convert lazy loaded string to str

This commit is contained in:
PCoder 2019-09-24 09:44:45 +05:30
parent 4dd49051b4
commit 8cd7a69162

View file

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