summaryrefslogtreecommitdiffstats
path: root/nova/compute
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-11-02 22:47:46 +0000
committerGerrit Code Review <review@openstack.org>2012-11-02 22:47:46 +0000
commitc68833a6d99d4f69abb7a7f2bf0401044a252a6f (patch)
tree1ea212197c6ed6432b0bd00a54df95088a10cbb8 /nova/compute
parent29568d0be0b4cad99a21a53438a2c95540f9ea87 (diff)
parent8a134759982a497118acbee328a01b00e9cb2a44 (diff)
Merge "Remove db.instance_get* from nova/virt"
Diffstat (limited to 'nova/compute')
-rw-r--r--nova/compute/manager.py6
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."""