From 5cb518d9014ea69f34a964119840130b962cb80b Mon Sep 17 00:00:00 2001 From: Angus Salkeld Date: Tue, 5 Feb 2013 09:12:51 +1100 Subject: [PATCH] Fix typo in AutoScaling update Change-Id: I2e96e6f71c3cb0b9ce73e57344e0eb4706b95f70 --- heat/engine/resources/autoscaling.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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']) -- 2.45.2