diff --git a/watcher/decision_engine/planner/weight.py b/watcher/decision_engine/planner/weight.py index aaab6f25d..ad074f4d5 100644 --- a/watcher/decision_engine/planner/weight.py +++ b/watcher/decision_engine/planner/weight.py @@ -87,6 +87,7 @@ class WeightPlanner(base.BasePlanner): @staticmethod def chunkify(lst, n): """Yield successive n-sized chunks from lst.""" + n = int(n) if n < 1: # Just to make sure the number is valid n = 1