From 8a134759982a497118acbee328a01b00e9cb2a44 Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Thu, 1 Nov 2012 11:12:24 -0700 Subject: Remove db.instance_get* from nova/virt This adds two methods to the VirtAPI for instance_get_* operations, removing direct calls of those from the drivers. Change-Id: I0be42f73fb71a61bf6c46708d5879f7f8ade294d --- nova/compute/manager.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'nova/compute') diff --git a/nova/compute/manager.py b/nova/compute/manager.py index c440e9f53..71e1dffb8 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.""" -- cgit