diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-11-02 22:47:46 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-11-02 22:47:46 +0000 |
| commit | c68833a6d99d4f69abb7a7f2bf0401044a252a6f (patch) | |
| tree | 1ea212197c6ed6432b0bd00a54df95088a10cbb8 /nova/compute | |
| parent | 29568d0be0b4cad99a21a53438a2c95540f9ea87 (diff) | |
| parent | 8a134759982a497118acbee328a01b00e9cb2a44 (diff) | |
Merge "Remove db.instance_get* from nova/virt"
Diffstat (limited to 'nova/compute')
| -rw-r--r-- | nova/compute/manager.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nova/compute/manager.py b/nova/compute/manager.py index f45f4e28f..74f8aade2 100644 --- a/nova/compute/manager.py +++ b/nova/compute/manager.py @@ -220,6 +220,12 @@ class ComputeVirtAPI(virtapi.VirtAPI): instance_uuid, updates) + def instance_get_by_uuid(self, context, instance_uuid): + return self._compute.db.instance_get_by_uuid(context, instance_uuid) + + def instance_get_all_by_host(self, context, host): + return self._compute.db.instance_get_all_by_host(context, host) + class ComputeManager(manager.SchedulerDependentManager): """Manages the running instances from creation to destruction.""" |
