From 6d6a8ea597aaed145d69a9360abf267744554d0b Mon Sep 17 00:00:00 2001 From: PCoder Date: Mon, 16 Apr 2018 01:24:21 +0200 Subject: [PATCH] Refactor: reuse final_price variable --- datacenterlight/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacenterlight/tasks.py b/datacenterlight/tasks.py index 3db6eb54..5ba6e066 100644 --- a/datacenterlight/tasks.py +++ b/datacenterlight/tasks.py @@ -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'],