Skip to content

Commit 594853d

Browse files
committed
fixing condition to raise exception when URL is not reachable [Fixes #9]
1 parent 9e271b1 commit 594853d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rally_plugins/scenarios/kubernetes/services.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def run(self, image, port, protocol, image_pull_policy='IfNotPresent',
239239
if i < retries_total:
240240
i += 1
241241
commonutils.interruptable_sleep(sleep_time)
242-
else:
242+
if i == retries_total:
243243
raise exceptions.RallyException(
244244
message="Unable to get response "
245245
"from %(url)s: %(ex)s" % {

0 commit comments

Comments
 (0)