From 3f6a2d1621ce4bdca4fb95d561e1dd703c0737bd Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Mon, 10 Dec 2012 12:55:27 -0800 Subject: Make nova/virt use aggregate['metadetails'] This patch makes nova/virt use the metadata attached to the aggregate object instead of querying it separately. This allows us to remove a method from VirtAPI and avoid adding another one to conductor to support it. Change-Id: I4b9ff59147d30ff6f71fa66e838f060b8853dc95 --- nova/compute/manager.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'nova/compute') diff --git a/nova/compute/manager.py b/nova/compute/manager.py index ce2642b13..3b315ef81 100644 --- a/nova/compute/manager.py +++ b/nova/compute/manager.py @@ -268,9 +268,6 @@ class ComputeVirtAPI(virtapi.VirtAPI): def aggregate_get_by_host(self, context, host, key=None): return self._compute.db.aggregate_get_by_host(context, host, key=key) - def aggregate_metadata_get(self, context, aggregate_id): - return self._compute.db.aggregate_metadata_get(context, aggregate_id) - def aggregate_metadata_add(self, context, aggregate_id, metadata, set_delete=False): return self._compute.db.aggregate_metadata_add(context, aggregate_id, -- cgit