cast to int when doing math.
This commit is contained in:
		
							parent
							
								
									c0d19ab178
								
							
						
					
					
						commit
						4626fc0fea
					
				| @ -186,7 +186,7 @@ class FakeAutoScalingGroup(object): | |||||||
| 
 | 
 | ||||||
|         if self.desired_capacity > curr_instance_count: |         if self.desired_capacity > curr_instance_count: | ||||||
|             # Need more instances |             # Need more instances | ||||||
|             count_needed = self.desired_capacity - curr_instance_count |             count_needed = int(self.desired_capacity) - int(curr_instance_count) | ||||||
|             reservation = self.autoscaling_backend.ec2_backend.add_instances( |             reservation = self.autoscaling_backend.ec2_backend.add_instances( | ||||||
|                 self.launch_config.image_id, |                 self.launch_config.image_id, | ||||||
|                 count_needed, |                 count_needed, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user