From a6fed74d1d5d384a735ae58017e8c33daee783aa Mon Sep 17 00:00:00 2001 From: Michael Kerrin Date: Tue, 16 Apr 2013 11:33:36 +0000 Subject: Cleanup and test volume usage on volume detach * Refactor _poll_volume_usage to be more readable * Test that detaching a volume updates the totals on the volume usage cache correctly. This works but adding test to make sure that it always works. Change-Id: I82da44137bc65d5f04bca0820eb327438d6e1f35 --- nova/virt/fake.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'nova/virt') diff --git a/nova/virt/fake.py b/nova/virt/fake.py index e55fbb640..18774245f 100755 --- a/nova/virt/fake.py +++ b/nova/virt/fake.py @@ -274,8 +274,7 @@ class FakeDriver(driver.ComputeDriver): bw = [] return bw - def get_all_volume_usage(self, context, instances, start_time, - stop_time=None): + def get_all_volume_usage(self, context, compute_host_bdms): """Return usage info for volumes attached to vms on a given host""" volusage = [] -- cgit