Refactor: reuse final_price variable

This commit is contained in:
PCoder 2018-04-16 01:24:21 +02:00
parent 903336a46f
commit 6d6a8ea597
1 changed files with 1 additions and 1 deletions

View File

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