summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Buil <mbuil@suse.com>2018-04-03 17:21:05 +0200
committerManuel Buil <mbuil@suse.com>2018-04-03 17:21:05 +0200
commitcc16df5b8317d46e06f4331edf602eaa2a77acbf (patch)
tree0b91f6530967ef049bc18f59c2e42fe9292b4b68
parent9dda531e8e9be93b930b89d45a395085fbcb61cc (diff)
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 <mbuil@suse.com>
-rw-r--r--sfc/lib/openstack_utils.py2
-rw-r--r--sfc/tests/functest/run_sfc_tests.py1
-rw-r--r--sfc/tests/functest/sfc_chain_deletion.py4
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")