From: Angus Salkeld Date: Mon, 4 Feb 2013 22:12:51 +0000 (+1100) Subject: Fix typo in AutoScaling update X-Git-Tag: 2014.1~937 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=5cb518d9014ea69f34a964119840130b962cb80b;p=openstack-build%2Fheat-build.git Fix typo in AutoScaling update Change-Id: I2e96e6f71c3cb0b9ce73e57344e0eb4706b95f70 --- diff --git a/heat/engine/resources/autoscaling.py b/heat/engine/resources/autoscaling.py index 6b09c0d7..858f1efd 100644 --- a/heat/engine/resources/autoscaling.py +++ b/heat/engine/resources/autoscaling.py @@ -247,8 +247,8 @@ class AutoScalingGroup(InstanceGroup, CooldownMixin): if capacity < int(self.properties['MinSize']): new_capacity = int(self.properties['MinSize']) if 'MaxSize' in prop_diff: - if capacity > int(self.properties['MinSize']): - new_capacity = int(self.properties['MinSize']) + if capacity > int(self.properties['MaxSize']): + new_capacity = int(self.properties['MaxSize']) if 'DesiredCapacity' in prop_diff: if self.properties['DesiredCapacity']: new_capacity = int(self.properties['DesiredCapacity'])