diff options
| author | Yun Mao <yunmao@gmail.com> | 2012-08-24 17:41:10 -0400 |
|---|---|---|
| committer | Yun Mao <yunmao@gmail.com> | 2012-08-24 17:44:00 -0400 |
| commit | 652d602ebd0b54731f6ce6b2c85ed403a4c5a0cb (patch) | |
| tree | e51239ccd5bd3e70f46b19d6f4dabdcb46dafb08 | |
| parent | 80f208c2eb1854c83790226a31946e4b612b2e72 (diff) | |
| download | nova-652d602ebd0b54731f6ce6b2c85ed403a4c5a0cb.tar.gz nova-652d602ebd0b54731f6ce6b2c85ed403a4c5a0cb.tar.xz nova-652d602ebd0b54731f6ce6b2c85ed403a4c5a0cb.zip | |
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
| -rw-r--r-- | nova/db/api.py | 2 |
1 files changed, 1 insertions, 1 deletions
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, |
