summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nova/filters.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/filters.py b/nova/filters.py
index 4b7f9ff10..e1f65658a 100644
--- a/nova/filters.py
+++ b/nova/filters.py
@@ -64,4 +64,6 @@ class BaseFilterHandler(loadables.BaseLoader):
list_objs = list(objs)
LOG.debug("Filter %(cls_name)s returned %(obj_len)d host(s)",
{'cls_name': cls_name, 'obj_len': len(list_objs)})
+ if len(list_objs) == 0:
+ break
return list_objs