Refactor: reuse final_price variable
This commit is contained in:
		
					parent
					
						
							
								903336a46f
							
						
					
				
			
			
				commit
				
					
						6d6a8ea597
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -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'],
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue