Fix additional pep8 issues on Jenkins
bug 1014644 Change-Id: If858d04443319d4ddd20a65bc5bf0221564860f8
This commit is contained in:
parent
b1bfe1ae13
commit
9e44af2082
@ -82,17 +82,17 @@ class PortprofilesController(common.QuantumController, wsgi.Controller):
|
|||||||
self._portprofile_ops_param_list = [{
|
self._portprofile_ops_param_list = [{
|
||||||
'param-name': 'portprofile_name',
|
'param-name': 'portprofile_name',
|
||||||
'required': True}, {
|
'required': True}, {
|
||||||
'param-name': 'qos_name',
|
'param-name': 'qos_name',
|
||||||
'required': True}, {
|
'required': True}, {
|
||||||
'param-name': 'assignment',
|
'param-name': 'assignment',
|
||||||
'required': False}
|
'required': False}
|
||||||
]
|
]
|
||||||
|
|
||||||
self._assignprofile_ops_param_list = [{
|
self._assignprofile_ops_param_list = [{
|
||||||
'param-name': 'network-id',
|
'param-name': 'network-id',
|
||||||
'required': True}, {
|
'required': True}, {
|
||||||
'param-name': 'port-id',
|
'param-name': 'port-id',
|
||||||
'required': True}
|
'required': True}
|
||||||
]
|
]
|
||||||
|
|
||||||
self._serialization_metadata = {
|
self._serialization_metadata = {
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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'])
|
||||||
|
Loading…
Reference in New Issue
Block a user