Skip to content

Commit

Permalink
Fix additional pep8 issues on Jenkins
Browse files Browse the repository at this point in the history
bug 1014644

Change-Id: If858d04443319d4ddd20a65bc5bf0221564860f8
  • Loading branch information
Gary Kotton committed Jun 18, 2012
1 parent 1c3a2a0 commit 4ddb71e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
12 changes: 6 additions & 6 deletions quantum/extensions/portprofile.py
Expand Up @@ -82,17 +82,17 @@ def __init__(self, plugin):
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 = {
Expand Down
4 changes: 2 additions & 2 deletions quantum/plugins/cisco/common/cisco_faults.py
Expand Up @@ -54,8 +54,8 @@ def __call__(self, req):
'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

Expand Down
5 changes: 2 additions & 3 deletions quantum/plugins/cisco/db/api.py
Expand Up @@ -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'])
Expand Down

0 comments on commit 4ddb71e

Please sign in to comment.