diff options
| author | Josh Kearney <josh@jk0.org> | 2011-08-05 14:28:22 -0500 |
|---|---|---|
| committer | Josh Kearney <josh@jk0.org> | 2011-08-05 14:28:22 -0500 |
| commit | f03c926a7d28ee35789048ea53c36cd452ed3571 (patch) | |
| tree | d9e541b84a860ba984b0aa8bfdd55289644af054 /nova/api | |
| parent | 7bdc430d334d51193492191e490be20d41dd5125 (diff) | |
Allow actions queries by UUID and PEP8 fixes.
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/direct.py | 1 | ||||
| -rw-r--r-- | nova/api/openstack/common.py | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/nova/api/direct.py b/nova/api/direct.py index 139c46d63..fdd2943d2 100644 --- a/nova/api/direct.py +++ b/nova/api/direct.py @@ -48,6 +48,7 @@ import nova.api.openstack.wsgi # Global storage for registering modules. ROUTES = {} + def register_service(path, handle): """Register a service handle at a given path. diff --git a/nova/api/openstack/common.py b/nova/api/openstack/common.py index 715b9e4a4..4548c2c75 100644 --- a/nova/api/openstack/common.py +++ b/nova/api/openstack/common.py @@ -154,7 +154,8 @@ def remove_version_from_href(href): """ parsed_url = urlparse.urlsplit(href) - new_path = re.sub(r'^/v[0-9]+\.[0-9]+(/|$)', r'\1', parsed_url.path, count=1) + new_path = re.sub(r'^/v[0-9]+\.[0-9]+(/|$)', r'\1', parsed_url.path, + count=1) if new_path == parsed_url.path: msg = _('href %s does not contain version') % href |
