diff options
| author | Sandy Walsh <sandy.walsh@rackspace.com> | 2011-05-16 19:29:44 -0700 |
|---|---|---|
| committer | Sandy Walsh <sandy.walsh@rackspace.com> | 2011-05-16 19:29:44 -0700 |
| commit | 6bec79c4e1f5999dd69134fe15bd799e0cba9761 (patch) | |
| tree | 04e0a263dd707f3eda9a8d770bbe2eeb1587d5fe /bin | |
| parent | 02bba6a8f49b924e9b5b0e69124afd953e8cc3ae (diff) | |
| parent | 0946bac5fa210dc9172bbd6ab73ffd77495ebe58 (diff) | |
failure conditions are being sent back properly now
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) |
