Commit a53d2594 authored by Antoine Millet's avatar Antoine Millet

Fixed bug with election memory filter.

parent 41658e82
......@@ -217,7 +217,7 @@ class Elector(object):
def _filter_enough_ram(self, vm, hvs):
returned = []
for hv in hvs:
if int(hv.get('memfree', 0)) >= int(self.vm.get('mem', 0)):
if int(hv.get('memfree', 0)) >= int(vm.get('mem', 0)):
return returned
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment