From 594853d9c41a951fc661c7acc53e20cfabcf6b2c Mon Sep 17 00:00:00 2001 From: DheerajDang Date: Fri, 21 May 2021 14:59:20 +0530 Subject: [PATCH] fixing condition to raise exception when URL is not reachable [Fixes #9] --- rally_plugins/scenarios/kubernetes/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rally_plugins/scenarios/kubernetes/services.py b/rally_plugins/scenarios/kubernetes/services.py index 50f74ba..60b0387 100644 --- a/rally_plugins/scenarios/kubernetes/services.py +++ b/rally_plugins/scenarios/kubernetes/services.py @@ -239,7 +239,7 @@ def run(self, image, port, protocol, image_pull_policy='IfNotPresent', if i < retries_total: i += 1 commonutils.interruptable_sleep(sleep_time) - else: + if i == retries_total: raise exceptions.RallyException( message="Unable to get response " "from %(url)s: %(ex)s" % {