diff options
| author | Chris Behrens <cbehrens@codestud.com> | 2011-05-26 19:30:23 +0000 |
|---|---|---|
| committer | Chris Behrens <cbehrens@codestud.com> | 2011-05-26 19:30:23 +0000 |
| commit | 4d8995813d070530f1b6aa4a8d07758cd7d74ec2 (patch) | |
| tree | 7a9ffe96e68b07459c08c2753cf54361d04a0a1d /bin | |
| parent | 899642030dd60541153ccee810d082816f92dd49 (diff) | |
| parent | 146e3a7a4f38e17dfbdac12860cffa057c936ed4 (diff) | |
| download | nova-4d8995813d070530f1b6aa4a8d07758cd7d74ec2.tar.gz nova-4d8995813d070530f1b6aa4a8d07758cd7d74ec2.tar.xz nova-4d8995813d070530f1b6aa4a8d07758cd7d74ec2.zip | |
Merged trunk
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/nova-manage | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/nova-manage b/bin/nova-manage index e91081d72..26c0d776c 100755 --- a/bin/nova-manage +++ b/bin/nova-manage @@ -417,12 +417,16 @@ class ProjectCommands(object): arguments: project_id [key] [value]""" ctxt = context.get_admin_context() if key: + if value.lower() == 'unlimited': + value = None try: db.quota_update(ctxt, project_id, key, value) except exception.ProjectQuotaNotFound: db.quota_create(ctxt, project_id, key, value) - project_quota = quota.get_quota(ctxt, project_id) + project_quota = quota.get_project_quotas(ctxt, project_id) for key, value in project_quota.iteritems(): + if value is None: + value = 'unlimited' print '%s: %s' % (key, value) def remove(self, project_id, user_id): |
