diff options
| author | Dan Prince <dan.prince@rackspace.com> | 2011-07-21 14:21:27 -0400 |
|---|---|---|
| committer | Dan Prince <dan.prince@rackspace.com> | 2011-07-21 14:21:27 -0400 |
| commit | 5913e537ceb352ec4e5999cdadb1d826771d5d72 (patch) | |
| tree | b4cc0f0a995bd03b7bbaad841ffe8c99cfa05e90 /nova/compute | |
| parent | 74c399cb2ebb914973c2f0dc6ecf4dd8bbc062d7 (diff) | |
Updated the compute API so that has_finished_migration uses instance_uuid.
Fixes some regressions with 1295-1296.
Diffstat (limited to 'nova/compute')
| -rw-r--r-- | nova/compute/api.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/compute/api.py b/nova/compute/api.py index 67aa3c20f..9994e5724 100644 --- a/nova/compute/api.py +++ b/nova/compute/api.py @@ -467,10 +467,10 @@ class API(base.Base): return [dict(x.iteritems()) for x in instances] - def has_finished_migration(self, context, instance_id): + def has_finished_migration(self, context, instance_uuid): """Returns true if an instance has a finished migration.""" try: - db.migration_get_by_instance_and_status(context, instance_id, + db.migration_get_by_instance_and_status(context, instance_uuid, 'finished') return True except exception.NotFound: |
