Fix the conditional check

Change-Id: I5f8a1593ab22071d2016908ea1bc96169b1cc862
This commit is contained in:
Asma Syed Hameed 2022-01-24 18:09:48 +05:30
parent 675396a930
commit 82c6412cec

View File

@ -136,7 +136,7 @@ class OctaviaFullyPopulatedLoadbalancer(vm_utils.VMScenario, neutron_utils.Neutr
while attempts < max_attempts: while attempts < max_attempts:
test_exitcode, stdout_test, stderr = jump_ssh.execute(cmd, timeout=60) test_exitcode, stdout_test, stderr = jump_ssh.execute(cmd, timeout=60)
LOG.info("cmd: {}, stdout:{}".format(cmd, stdout_test)) 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)) LOG.error("ERROR with HTTP response {}".format(cmd))
attempts += 1 attempts += 1
time.sleep(30) time.sleep(30)