Skip to content
Snippets Groups Projects
Commit a53d2594 authored by Antoine Millet's avatar Antoine Millet
Browse files

Fixed bug with election memory filter.

parent 41658e82
No related branches found
No related tags found
No related merge requests found
......@@ -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)):
returned.append(hv)
return returned
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment