summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorJustin Santa Barbara <justin@fathomdb.com>2011-03-24 03:28:59 -0700
committerJustin Santa Barbara <justin@fathomdb.com>2011-03-24 03:28:59 -0700
commitd49219f8b6dd626b868b99bee8a22c4ac5495af1 (patch)
tree3e4fe8fbda958976eb75933d865f722546236085 /nova/api
parent230d07e9002371bdb0030c9199df35fc6360a0a2 (diff)
pep8 fixes
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/__init__.py1
-rw-r--r--nova/api/openstack/volume_attachments.py10
2 files changed, 6 insertions, 5 deletions
diff --git a/nova/api/openstack/__init__.py b/nova/api/openstack/__init__.py
index e8aa4821b..030974482 100644
--- a/nova/api/openstack/__init__.py
+++ b/nova/api/openstack/__init__.py
@@ -141,6 +141,7 @@ class APIRouter(wsgi.Router):
super(APIRouter, self).__init__(mapper)
+
class APIRouterV10(APIRouter):
"""Define routes specific to OpenStack API V1.0."""
diff --git a/nova/api/openstack/volume_attachments.py b/nova/api/openstack/volume_attachments.py
index 2ce681e19..58a9a727b 100644
--- a/nova/api/openstack/volume_attachments.py
+++ b/nova/api/openstack/volume_attachments.py
@@ -62,17 +62,17 @@ def _translate_summary_view(context, vol):
class Controller(wsgi.Controller):
""" The volume attachment API controller for the Openstack API
-
+
A child resource of the server. Note that we use the volume id
as the ID of the attachment (though this is not guaranteed externally)"""
_serialization_metadata = {
'application/xml': {
'attributes': {
- 'volumeAttachment': [ 'id',
- 'serverId',
- 'volumeId',
- 'device' ]}}}
+ 'volumeAttachment': ['id',
+ 'serverId',
+ 'volumeId',
+ 'device']}}}
def __init__(self):
self.compute_api = compute.API()