Fix display of server group members

The previous code was failing to display the members of server
groups because it was filtering them all out.

Interestingly, the previous code passes the unit tests due to a
bug where we treat regex comparisons differently when using mysql
vs sqlite (tracked under bug 1298690).

Change-Id: I7be9c180f4284dd18cd02e510e77e3c1e3fc9925
Closes-bug: 1298494
(cherry picked from commit 8ce30b6ac7)
This commit is contained in:
Chris Friesen 2014-03-27 16:49:31 -06:00 committed by Chuck Short
parent 1d60a98729
commit 40ae1eefe4
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ class ServerGroupController(wsgi.Controller):
members = []
if group.members:
# Display the instances that are not deleted.
filters = {'uuid': group.members, 'deleted_at': None}
filters = {'uuid': group.members, 'deleted': False}
instances = instance_obj.InstanceList.get_by_filters(
context, filters=filters)
members = [instance.uuid for instance in instances]