diff options
| author | Mark Washenberger <mark.washenberger@rackspace.com> | 2011-03-10 14:53:13 -0500 |
|---|---|---|
| committer | Mark Washenberger <mark.washenberger@rackspace.com> | 2011-03-10 14:53:13 -0500 |
| commit | 616723fe4e7d52b0b8ddafda10fcfe07a87609c8 (patch) | |
| tree | 1796254deb3e72f9897abd78c8d60f442246e2da /nova | |
| parent | b3951f4c2a2473814f0dd1a90f950bef418457ca (diff) | |
| download | nova-616723fe4e7d52b0b8ddafda10fcfe07a87609c8.tar.gz nova-616723fe4e7d52b0b8ddafda10fcfe07a87609c8.tar.xz nova-616723fe4e7d52b0b8ddafda10fcfe07a87609c8.zip | |
add docstring
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/compute/api.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nova/compute/api.py b/nova/compute/api.py index 2766ddc9c..efa051d10 100644 --- a/nova/compute/api.py +++ b/nova/compute/api.py @@ -81,6 +81,11 @@ class API(base.Base): {"method": "get_network_topic", "args": {'fake': 1}}) def _check_personality_file_quota(self, context, personality_files): + """ + Enforce quota limits on personality files + + Raises a QuotaError if any limit is exceeded + """ limit = quota.allowed_personality_files(context) if len(personality_files) > limit: raise quota.QuotaError(_("Personality limit exceeded. You can " |
