From 652d602ebd0b54731f6ce6b2c85ed403a4c5a0cb Mon Sep 17 00:00:00 2001 From: Yun Mao Date: Fri, 24 Aug 2012 17:41:10 -0400 Subject: Rename class_name to project_id project_id is the variable used in the actual code, which is not defined without this patch. This bug is never caught because quota_usage_update seems to be no longer in use. Partially fix bug 1037183 Change-Id: I42a279489de75128e7acf09fd05873e73846d272 --- nova/db/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/db/api.py b/nova/db/api.py index b80e88705..d4be854b3 100644 --- a/nova/db/api.py +++ b/nova/db/api.py @@ -981,7 +981,7 @@ def quota_usage_get_all_by_project(context, project_id): return IMPL.quota_usage_get_all_by_project(context, project_id) -def quota_usage_update(context, class_name, resource, in_use, reserved, +def quota_usage_update(context, project_id, resource, in_use, reserved, until_refresh): """Update a quota usage or raise if it does not exist.""" return IMPL.quota_usage_update(context, project_id, resource, -- cgit