diff options
| author | Jason Koelker <jason@koelker.net> | 2011-09-15 13:30:38 -0500 |
|---|---|---|
| committer | Jason Koelker <jason@koelker.net> | 2011-09-15 13:30:38 -0500 |
| commit | f0f13454a68cdf5e33bb9c667f2e57d84b70ae11 (patch) | |
| tree | 6a84e9e5fb57f057bad32f6458624e415bdaf778 | |
| parent | 0e492344e49b21fd3e08ab5dcf631012044cef9c (diff) | |
make sure to use the uuid
| -rw-r--r-- | nova/compute/api.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nova/compute/api.py b/nova/compute/api.py index 122e62208..45b7f3f21 100644 --- a/nova/compute/api.py +++ b/nova/compute/api.py @@ -932,11 +932,11 @@ class API(base.Base): def _get_instances_by_filters(self, context, filters): ids = None if 'ip6' in filters or 'ip' in filters: - res = self.network_api.get_instance_ids_by_ip_filter(context, - filters) + res = self.network_api.get_instance_uuids_by_ip_filter(context, + filters) # NOTE(jkoelker) It is possible that we will get the same # instance id twice (one for ipv4 and ipv4) - ids = set([r['instance_id'] for r in res]) + ids = set([r['instance_uuid'] for r in res]) return self.db.instance_get_all_by_filters(context, filters, ids) |
