From 82c6412cec2df36cded938c2d53a20c34050f7e9 Mon Sep 17 00:00:00 2001 From: Asma Syed Hameed Date: Mon, 24 Jan 2022 18:09:48 +0530 Subject: [PATCH] Fix the conditional check Change-Id: I5f8a1593ab22071d2016908ea1bc96169b1cc862 --- .../octavia/octavia-fully-populated-loadbalancer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rally/rally-plugins/octavia/octavia-fully-populated-loadbalancer.py b/rally/rally-plugins/octavia/octavia-fully-populated-loadbalancer.py index 564b79a7b..3cadb2280 100644 --- a/rally/rally-plugins/octavia/octavia-fully-populated-loadbalancer.py +++ b/rally/rally-plugins/octavia/octavia-fully-populated-loadbalancer.py @@ -136,7 +136,7 @@ class OctaviaFullyPopulatedLoadbalancer(vm_utils.VMScenario, neutron_utils.Neutr while attempts < max_attempts: test_exitcode, stdout_test, stderr = jump_ssh.execute(cmd, timeout=60) LOG.info("cmd: {}, stdout:{}".format(cmd, stdout_test)) - if test_exitcode != 0 and stdout_test != 1: + if stdout_test != '1': LOG.error("ERROR with HTTP response {}".format(cmd)) attempts += 1 time.sleep(30)