aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKelley Spoon <kelley.spoon@linaro.org>2020-05-14 09:15:27 -0500
committerKelley Spoon <kelley.spoon@linaro.org>2020-05-14 14:16:49 +0000
commit9975dc48a55b59f21db1a4fd1b371c7760ffc162 (patch)
treed5c913483551a54ab317d8cddfb2c49c5f94ca44
parent9d0957d99e29fe94cab32e8bfade7155a0b14885 (diff)
downloadlinaro-license-protection-9975dc48a55b59f21db1a4fd1b371c7760ffc162.tar.gz
s3_flatten: fix inifinte loop
Turns out if you use a while loop to do retries, you should also set the exit for a success. Change-Id: I593c717459e259487d804bd3b616b5b3049ff462 Reviewed-on: https://review.linaro.org/c/infrastructure/linaro-license-protection/+/35188 Reviewed-by: Kelley Spoon <kelley.spoon@linaro.org>
-rw-r--r--license_protected_downloads/management/commands/s3_flatten.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/license_protected_downloads/management/commands/s3_flatten.py b/license_protected_downloads/management/commands/s3_flatten.py
index 5044775..eb112e4 100644
--- a/license_protected_downloads/management/commands/s3_flatten.py
+++ b/license_protected_downloads/management/commands/s3_flatten.py
@@ -83,6 +83,7 @@ class Command(BaseCommand):
while retries > 0:
try:
self.handle_bucket(*args, **options)
+ retries = 0
except httplib.BadStatusLine as e:
logging.error("httplib error handle_bucket(): %" % e)
retries -= 1