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 b1bfe1ae13
commit 9e44af2082
3 changed files with 10 additions and 11 deletions

View File

@ -54,8 +54,8 @@ class Fault(webob.exc.HTTPException):
'message': self.wrapped_exc.explanation}} 'message': self.wrapped_exc.explanation}}
# 'code' is an attribute on the fault tag itself # 'code' is an attribute on the fault tag itself
content_type = req.best_match_content_type() content_type = req.best_match_content_type()
self.wrapped_exc.body = wsgi.Serializer().\ self.wrapped_exc.body = wsgi.Serializer().serialize(
serialize(fault_data, content_type) fault_data, content_type)
self.wrapped_exc.content_type = content_type self.wrapped_exc.content_type = content_type
return self.wrapped_exc 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']) att_id=port['interface_id'])
try: try:
port = session.query(models.Port).\ port = session.query(models.Port).filter_by(
filter_by(interface_id=new_interface_id).\ interface_id=new_interface_id).one()
one()
raise q_exc.AlreadyAttached(port_id=port_id, raise q_exc.AlreadyAttached(port_id=port_id,
att_id=new_interface_id, att_id=new_interface_id,
att_port_id=port['uuid']) att_port_id=port['uuid'])