From 67268d9db308f8597a01093ba7498ace3c153df4 Mon Sep 17 00:00:00 2001 From: sanjeev Date: Wed, 4 Feb 2015 15:24:07 +0530 Subject: [PATCH] Iterate one more time before failing iso download Signed-off-by: sanjeev --- tools/marvin/marvin/lib/base.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/marvin/marvin/lib/base.py b/tools/marvin/marvin/lib/base.py index 5bad6b74cdd..74433731cae 100755 --- a/tools/marvin/marvin/lib/base.py +++ b/tools/marvin/marvin/lib/base.py @@ -1343,6 +1343,7 @@ class Iso: def download(self, apiclient, timeout=5, interval=60): """Download an ISO""" # Ensuring ISO is successfully downloaded + retry = 1 while True: time.sleep(interval) @@ -1360,6 +1361,9 @@ class Iso: return elif 'Downloaded' not in response.status and \ 'Installing' not in response.status: + if retry == 1: + retry = retry - 1 + continue raise Exception( "Error In Downloading ISO: ISO Status - %s" % response.status)