|  |  |  | @ -1206,6 +1206,7 @@ class DecortController(object): | 
			
		
	
		
			
				
					|  |  |  |  |             api_params = dict(computeId=comp_dict['id'], | 
			
		
	
		
			
				
					|  |  |  |  |                           affinityLabel=label,) | 
			
		
	
		
			
				
					|  |  |  |  |             self.decort_api_call(requests.post, "/restmachine/cloudapi/compute/affinityLabelSet", api_params) | 
			
		
	
		
			
				
					|  |  |  |  |         if aff: | 
			
		
	
		
			
				
					|  |  |  |  |             if len(aff[0])>0: | 
			
		
	
		
			
				
					|  |  |  |  |                 for rule in aff: | 
			
		
	
		
			
				
					|  |  |  |  |                     api_params = dict(computeId=comp_dict['id'], | 
			
		
	
	
		
			
				
					|  |  |  | @ -1215,6 +1216,7 @@ class DecortController(object): | 
			
		
	
		
			
				
					|  |  |  |  |                                 mode=rule['mode'], | 
			
		
	
		
			
				
					|  |  |  |  |                                 policy=rule['policy'],) | 
			
		
	
		
			
				
					|  |  |  |  |                     self.decort_api_call(requests.post, "/restmachine/cloudapi/compute/affinityRuleAdd", api_params) | 
			
		
	
		
			
				
					|  |  |  |  |         if aaff: | 
			
		
	
		
			
				
					|  |  |  |  |             if len(aaff[0])>0: | 
			
		
	
		
			
				
					|  |  |  |  |                 for rule in aaff: | 
			
		
	
		
			
				
					|  |  |  |  |                     api_params = dict(computeId=comp_dict['id'], | 
			
		
	
	
		
			
				
					|  |  |  | 
 |