Fix additional pep8 issues on Jenkins

bug 1014644

Change-Id: If858d04443319d4ddd20a65bc5bf0221564860f8
This commit is contained in:
Gary Kotton 2012-06-18 09:16:10 -04:00
parent 1c3a2a0d97
commit 4ddb71e152
3 changed files with 10 additions and 11 deletions

View File

@ -82,17 +82,17 @@ class PortprofilesController(common.QuantumController, wsgi.Controller):
self._portprofile_ops_param_list = [{
'param-name': 'portprofile_name',
'required': True}, {
'param-name': 'qos_name',
'required': True}, {
'param-name': 'assignment',
'required': False}
'param-name': 'qos_name',
'required': True}, {
'param-name': 'assignment',
'required': False}
]
self._assignprofile_ops_param_list = [{
'param-name': 'network-id',
'required': True}, {
'param-name': 'port-id',
'required': True}
'param-name': 'port-id',
'required': True}
]
self._serialization_metadata = {

View File

@ -54,8 +54,8 @@ class Fault(webob.exc.HTTPException):
'message': self.wrapped_exc.explanation}}
# 'code' is an attribute on the fault tag itself
content_type = req.best_match_content_type()
self.wrapped_exc.body = wsgi.Serializer().\
serialize(fault_data, content_type)
self.wrapped_exc.body = wsgi.Serializer().serialize(
fault_data, content_type)
self.wrapped_exc.content_type = content_type
return self.wrapped_exc

View File

@ -282,9 +282,8 @@ def port_set_attachment_by_id(port_id, new_interface_id):
att_id=port['interface_id'])
try:
port = session.query(models.Port).\
filter_by(interface_id=new_interface_id).\
one()
port = session.query(models.Port).filter_by(
interface_id=new_interface_id).one()
raise q_exc.AlreadyAttached(port_id=port_id,
att_id=new_interface_id,
att_port_id=port['uuid'])