Invoice: Get VM name from id and configuration
This commit is contained in:
parent
858fdd5e3f
commit
4e080c9afc
1 changed files with 1 additions and 0 deletions
|
@ -694,6 +694,7 @@ class OrdersHostingDetailView(LoginRequiredMixin,
|
||||||
try:
|
try:
|
||||||
vm_detail = VMDetail.objects.get(vm_id=obj.vm_id)
|
vm_detail = VMDetail.objects.get(vm_id=obj.vm_id)
|
||||||
context['vm'] = vm_detail.__dict__
|
context['vm'] = vm_detail.__dict__
|
||||||
|
context['vm']['name'] = '{}-{}'.format(context['vm']['configuration'], context['vm']['vm_id'])
|
||||||
except VMDetail.DoesNotExist:
|
except VMDetail.DoesNotExist:
|
||||||
try:
|
try:
|
||||||
manager = OpenNebulaManager(
|
manager = OpenNebulaManager(
|
||||||
|
|
Loading…
Reference in a new issue