From cc16df5b8317d46e06f4331edf602eaa2a77acbf Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Tue, 3 Apr 2018 17:21:05 +0200 Subject: Fix flake8 problems There was a bug in releng and pylint was not ran, some issues got merged in master because of that Change-Id: Icf3fa882f4f2b0593fa0b85edce46e49dcc303c9 Signed-off-by: Manuel Buil --- sfc/lib/openstack_utils.py | 2 +- sfc/tests/functest/run_sfc_tests.py | 1 + sfc/tests/functest/sfc_chain_deletion.py | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/sfc/lib/openstack_utils.py b/sfc/lib/openstack_utils.py index fb63de9e..4a1c634d 100644 --- a/sfc/lib/openstack_utils.py +++ b/sfc/lib/openstack_utils.py @@ -219,7 +219,7 @@ class OpenStackSFC: return port else: logger.error("The VM {0} does not have any port" - " with name {1}".format(vm_name, port_name)) + " with name {1}".format(vm.name, port_name)) raise Exception("Client VM does not have the desired port") diff --git a/sfc/tests/functest/run_sfc_tests.py b/sfc/tests/functest/run_sfc_tests.py index 6c4a86d3..64c5b385 100644 --- a/sfc/tests/functest/run_sfc_tests.py +++ b/sfc/tests/functest/run_sfc_tests.py @@ -186,6 +186,7 @@ class SfcFunctest(testcase.TestCase): return testcase.TestCase.EX_RUN_ERROR + def main(): logging.basicConfig(level=logging.INFO) SFC = SfcFunctest() diff --git a/sfc/tests/functest/sfc_chain_deletion.py b/sfc/tests/functest/sfc_chain_deletion.py index cef56761..f96eb120 100644 --- a/sfc/tests/functest/sfc_chain_deletion.py +++ b/sfc/tests/functest/sfc_chain_deletion.py @@ -209,8 +209,8 @@ def main(): os_sfc_utils.delete_vnffgd(tacker_client, vnffgd_name='red') if not odl_utils.check_vnffg_deletion(odl_ip, odl_port, ovs_logger, - openstack_sfc.get_compute_client(), - compute_nodes): + openstack_sfc.get_compute_client(), + compute_nodes): logger.debug("The chains were not correctly removed") raise Exception("Chains not correctly removed, test failed") -- cgit 1.2.3-korg