From b69a7d6b3cbcceedb0f1f37f736a593fd77fc0be Mon Sep 17 00:00:00 2001 From: helenyao Date: Mon, 19 Dec 2016 22:18:33 -0500 Subject: Remove backslash to meet PEP8 requirement JIRA: FUNCTEST-630 Change-Id: Ia02760fd98aaab59a6cf0a90a2020b76e0c92df6 Signed-off-by: helenyao --- functest/opnfv_tests/openstack/vping/vping_ssh.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'functest/opnfv_tests/openstack/vping/vping_ssh.py') diff --git a/functest/opnfv_tests/openstack/vping/vping_ssh.py b/functest/opnfv_tests/openstack/vping/vping_ssh.py index 8ae590eda..b032c3087 100755 --- a/functest/opnfv_tests/openstack/vping/vping_ssh.py +++ b/functest/opnfv_tests/openstack/vping/vping_ssh.py @@ -101,9 +101,9 @@ class VPingSSH(vping_base.VPingBase): "from the dhcp agent." % self.vm2_name) # if dhcp not work,it shows "No lease, failing".The test will fail - if "No lease, failing" in console_log \ - and not nolease \ - and not got_ip: + if ("No lease, failing" in console_log and + not nolease and + not got_ip): nolease = True self.logger.debug("Console-log '%s': No lease, failing..." % self.vm2_name) -- cgit 1.2.3-korg