From be430a282810185c939c1fbbf3042036b814f38a Mon Sep 17 00:00:00 2001 From: Peter Mikus Date: Sat, 1 Sep 2018 15:29:37 +0000 Subject: Fix pylint part 1 - Decrease pylint errors. Part: easy Change-Id: I452e5b5a11e9b78c03cd173a3848babe21b93c73 Signed-off-by: Peter Mikus --- resources/libraries/python/InterfaceUtil.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'resources/libraries/python/InterfaceUtil.py') diff --git a/resources/libraries/python/InterfaceUtil.py b/resources/libraries/python/InterfaceUtil.py index 7286633676..94cee5ecbc 100644 --- a/resources/libraries/python/InterfaceUtil.py +++ b/resources/libraries/python/InterfaceUtil.py @@ -933,11 +933,11 @@ class InterfaceUtil(object): the node. """ hw_addr = '' if mac is None else 'hw-addr {mac}'.format(mac=mac) - lb = '' if load_balance is None \ - else 'lb {lb}'.format(lb=load_balance) + ldb = '' if load_balance is None \ + else 'lb {ldb}'.format(ldb=load_balance) output = VatExecutor.cmd_from_template( - node, 'create_bond_interface.vat', mode=mode, lb=lb, mac=hw_addr) + node, 'create_bond_interface.vat', mode=mode, lb=ldb, mac=hw_addr) if output[0].get('retval') == 0: sw_if_idx = output[0].get('sw_if_index') @@ -945,8 +945,8 @@ class InterfaceUtil(object): if_key = Topology.get_interface_by_sw_index(node, sw_if_idx) return if_key else: - raise RuntimeError('Create bond interface failed on node "{n}"' - .format(n=node['host'])) + raise RuntimeError('Create bond interface failed on "{host}"' + .format(host=node['host'])) @staticmethod def add_bond_eth_interface(node, ifc_name=None, sw_if_idx=None): -- cgit 1.2.3-korg