Comment 2 for bug 924577

Revision history for this message
Bavirisetty Ramya (bavirisetty-ramya) wrote :

Hi
I checked up the part_power value in the __init__ method of the RingBuilder class and raised a value error exception if the part_power is greater than 32 as below:
def __init__(self, part_power, replicas, min_part_hours):
        self.part_power = part_power
        self.replicas = replicas
        self.min_part_hours = min_part_hours
        self.parts = 2 ** self.part_power
        self.devs = []
        self.devs_changed = False
        self.version = 0
        if part_power > 32:
            raise ValueError("partpower should be less than 32")