diff options
| author | Rick Harris <rick.harris@rackspace.com> | 2011-05-17 16:26:40 -0500 |
|---|---|---|
| committer | Rick Harris <rick.harris@rackspace.com> | 2011-05-17 16:26:40 -0500 |
| commit | 579bbde235781f43e037410fd6402e4e6ecd534b (patch) | |
| tree | 846e3a3819d456c05069fa0c154c34b18cceca24 /bin | |
| parent | 23bbbfcd3317859d44dba7da7996a978ad922543 (diff) | |
| parent | b66c689afc5923702b3d6d27a5c8f12f6749b07d (diff) | |
| download | nova-579bbde235781f43e037410fd6402e4e6ecd534b.tar.gz nova-579bbde235781f43e037410fd6402e4e6ecd534b.tar.xz nova-579bbde235781f43e037410fd6402e4e6ecd534b.zip | |
Merging in Sandy's changes adding Noop Cost Fn with tests
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/nova-manage | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/nova-manage b/bin/nova-manage index a36ec86d0..c95b216ce 100755 --- a/bin/nova-manage +++ b/bin/nova-manage @@ -397,11 +397,10 @@ class ProjectCommands(object): arguments: project_id [key] [value]""" ctxt = context.get_admin_context() if key: - quo = {'project_id': project_id, key: value} try: - db.quota_update(ctxt, project_id, quo) + db.quota_update(ctxt, project_id, key, value) except exception.NotFound: - db.quota_create(ctxt, quo) + db.quota_create(ctxt, project_id, key, value) project_quota = quota.get_quota(ctxt, project_id) for key, value in project_quota.iteritems(): print '%s: %s' % (key, value) |
