Change-Id: I2e96e6f71c3cb0b9ce73e57344e0eb4706b95f70
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'])