From 4626fc0fea47e4fefece233748fdb79d4598fb6a Mon Sep 17 00:00:00 2001 From: Chris Henry Date: Mon, 23 Feb 2015 21:22:45 -0500 Subject: [PATCH] cast to int when doing math. --- moto/autoscaling/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/autoscaling/models.py b/moto/autoscaling/models.py index edd580dea..2be241554 100644 --- a/moto/autoscaling/models.py +++ b/moto/autoscaling/models.py @@ -186,7 +186,7 @@ class FakeAutoScalingGroup(object): if self.desired_capacity > curr_instance_count: # 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( self.launch_config.image_id, count_needed,