diff options
| author | Dan Smith <danms@us.ibm.com> | 2013-05-30 09:34:05 -0700 |
|---|---|---|
| committer | Dan Smith <danms@us.ibm.com> | 2013-06-07 11:43:37 -0700 |
| commit | a9aa1a402b64751614fbc98e14973d867a1bfca7 (patch) | |
| tree | 2e0e9738b134683506f0b0722d7618f1eda1186f /nova/virt | |
| parent | d431218f6aaae4541bd75e1a04a83e06f43e15bd (diff) | |
Remove unused methods from VirtAPI
The instance_get_all_by_host() and instance_get_by_uuid() methods are
no longer needed by any virt drivers, so remove them from the virtapi..
Related to blueprint unified-object-model
Change-Id: Ib51bf3b3e068d69e7a75f7312f03db6c85e7cf49
Diffstat (limited to 'nova/virt')
| -rwxr-xr-x | nova/virt/fake.py | 6 | ||||
| -rw-r--r-- | nova/virt/virtapi.py | 14 |
2 files changed, 0 insertions, 20 deletions
diff --git a/nova/virt/fake.py b/nova/virt/fake.py index 1b65571a5..3331dc105 100755 --- a/nova/virt/fake.py +++ b/nova/virt/fake.py @@ -444,12 +444,6 @@ class FakeVirtAPI(virtapi.VirtAPI): instance_uuid, updates) - def instance_get_by_uuid(self, context, instance_uuid): - return db.instance_get_by_uuid(context, instance_uuid) - - def instance_get_all_by_host(self, context, host): - return db.instance_get_all_by_host(context, host) - def aggregate_get_by_host(self, context, host, key=None): return db.aggregate_get_by_host(context, host, key=key) diff --git a/nova/virt/virtapi.py b/nova/virt/virtapi.py index 963b3c788..5b0a31826 100644 --- a/nova/virt/virtapi.py +++ b/nova/virt/virtapi.py @@ -26,20 +26,6 @@ class VirtAPI(object): """ raise NotImplementedError() - def instance_get_by_uuid(self, context, instance_uuid): - """Look up an instance by uuid - :param context: security context - :param instance_uuid: uuid of the instance to be fetched - """ - raise NotImplementedError() - - def instance_get_all_by_host(self, context, host): - """Find all instances on a given host - :param context: security context - :param host: host running instances to be returned - """ - raise NotImplementedError() - def aggregate_get_by_host(self, context, host, key=None): """Get a list of aggregates to which the specified host belongs :param context: security context |
