Refactor: reuse final_price variable

This commit is contained in:
PCoder 2018-04-16 01:24:21 +02:00
parent 903336a46f
commit 6d6a8ea597

View file

@ -130,7 +130,7 @@ def create_vm_task(self, vm_template_id, user, specs, template,
'cores': specs.get('cpu'), 'cores': specs.get('cpu'),
'memory': specs.get('memory'), 'memory': specs.get('memory'),
'storage': specs.get('disk_size'), 'storage': specs.get('disk_size'),
'price': specs.get('price'), 'price': final_price,
'template': template.get('name'), 'template': template.get('name'),
'vm_name': vm.get('name'), 'vm_name': vm.get('name'),
'vm_id': vm['vm_id'], 'vm_id': vm['vm_id'],