]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Fix typo in AutoScaling update
authorAngus Salkeld <asalkeld@redhat.com>
Mon, 4 Feb 2013 22:12:51 +0000 (09:12 +1100)
committerAngus Salkeld <asalkeld@redhat.com>
Mon, 4 Feb 2013 22:12:51 +0000 (09:12 +1100)
Change-Id: I2e96e6f71c3cb0b9ce73e57344e0eb4706b95f70

heat/engine/resources/autoscaling.py

index 6b09c0d78137e2ff54d77c2c3e4404a7fb51d3f0..858f1efd9371681e843c5071ed5f307746fed1fb 100644 (file)
@@ -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'])