From f47209e697ce9f7d93cdf4eaa3bb195770ec96d4 Mon Sep 17 00:00:00 2001 From: Tong Liu Date: Tue, 27 Jun 2017 16:57:28 +0000 Subject: [PATCH] Fix a few pep8 errors in db.py Change-Id: Ib29875453e90869226b01f96fb0f2b942333dff9 --- vmware_nsx/db/db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vmware_nsx/db/db.py b/vmware_nsx/db/db.py index 3368b71804..3f21163ab6 100644 --- a/vmware_nsx/db/db.py +++ b/vmware_nsx/db/db.py @@ -66,7 +66,7 @@ def delete_network_bindings(session, network_id): def add_network_binding(session, network_id, binding_type, phy_uuid, vlan_id): with session.begin(subtransactions=True): binding = nsx_models.TzNetworkBinding(network_id, binding_type, - phy_uuid, vlan_id) + phy_uuid, vlan_id) session.add(binding) return binding @@ -368,7 +368,7 @@ def add_qos_policy_profile_mapping(session, qos_policy_id, switch_profile_id): def get_switch_profile_by_qos_policy(session, qos_policy_id): try: entry = (session.query(nsx_models.QosPolicySwitchProfile). - filter_by(qos_policy_id=qos_policy_id).one()) + filter_by(qos_policy_id=qos_policy_id).one()) return entry.switch_profile_id except exc.NoResultFound: raise nsx_exc.NsxQosPolicyMappingNotFound(policy=qos_policy_id)