diff options
| author | Justin Santa Barbara <justin@fathomdb.com> | 2011-03-16 16:13:24 -0700 |
|---|---|---|
| committer | Justin Santa Barbara <justin@fathomdb.com> | 2011-03-16 16:13:24 -0700 |
| commit | 703e680aa6d0da1953ec6f8ae3a6aa66dc9fad7e (patch) | |
| tree | fa1f4e75528d7b268e49236fa1149faa682ffc94 /nova | |
| parent | 699abfe9e645ddbc854b42725247ab8fcd61517e (diff) | |
Fix the errors that pylint was reporting on this file
This was meant more as a test of whether pylint was now returning false-positives. It looks like the bugs it's reporting are at least partially real.
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/api/openstack/servers.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nova/api/openstack/servers.py b/nova/api/openstack/servers.py index 3ecd4fb01..dfaf35128 100644 --- a/nova/api/openstack/servers.py +++ b/nova/api/openstack/servers.py @@ -25,8 +25,9 @@ from nova import compute from nova import exception from nova import flags from nova import log as logging -from nova import wsgi +from nova import quota from nova import utils +from nova import wsgi from nova.api.openstack import common from nova.api.openstack import faults from nova.auth import manager as auth_manager @@ -188,7 +189,7 @@ class Controller(wsgi.Controller): key_data=key_data, metadata=metadata, injected_files=injected_files) - except QuotaError as error: + except quota.QuotaError as error: self._handle_quota_error(error) server = _translate_keys(instances[0]) @@ -238,7 +239,7 @@ class Controller(wsgi.Controller): injected_files.append((path, contents)) return injected_files - def _handle_quota_errors(self, error): + def _handle_quota_error(self, error): """ Reraise quota errors as api-specific http exceptions """ |
