]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix additional pep8 issues on Jenkins
authorGary Kotton <gkotton@redhat.com>
Mon, 18 Jun 2012 13:16:10 +0000 (09:16 -0400)
committerGary Kotton <gkotton@redhat.com>
Mon, 18 Jun 2012 13:16:52 +0000 (09:16 -0400)
bug 1014644

Change-Id: If858d04443319d4ddd20a65bc5bf0221564860f8

quantum/extensions/portprofile.py
quantum/plugins/cisco/common/cisco_faults.py
quantum/plugins/cisco/db/api.py

index 67a4268d8c950362d5ed45f443bcabccf5cc2833..18fcf51ae17289ff82cca3047778cd104dd6e687 100644 (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 = {
index 4abe8a741826d7bfa67323a041c730413f9607d3..fea32c22cd60672ab903234cc338455ba753469b 100644 (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
 
index 25e051bf9cab393677421d1a28eed043ed0b4902..918c352d3fc635c5252bbcba416d96d5a1aeab6f 100644 (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'])