Merge "Capacity weigher: Pass correct arg to super()"

This commit is contained in:
Jenkins 2016-05-20 13:51:25 +00:00 committed by Gerrit Code Review
commit 1ffee7ec52

View File

@ -84,7 +84,7 @@ class CapacityWeigher(weights.BaseHostWeigher):
largest weight value is being used a weight of -1 is used instead.
See _weigh_object method.
"""
tmp_weights = super(weights.BaseHostWeigher, self).weigh_objects(
tmp_weights = super(CapacityWeigher, self).weigh_objects(
weighed_obj_list, weight_properties)
if math.isinf(self.maxval):