cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sanj...@apache.org
Subject git commit: updated refs/heads/master to 67268d9
Date Mon, 16 Feb 2015 06:46:45 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master a7b8e987d -> 67268d9db


Iterate one more time before failing iso download

Signed-off-by: sanjeev <sanjeev@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/67268d9d
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/67268d9d
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/67268d9d

Branch: refs/heads/master
Commit: 67268d9db308f8597a01093ba7498ace3c153df4
Parents: a7b8e98
Author: sanjeev <sanjeev@apache.org>
Authored: Wed Feb 4 15:24:07 2015 +0530
Committer: sanjeev <sanjeev@apache.org>
Committed: Mon Feb 16 12:16:21 2015 +0530

----------------------------------------------------------------------
 tools/marvin/marvin/lib/base.py | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/67268d9d/tools/marvin/marvin/lib/base.py
----------------------------------------------------------------------
diff --git a/tools/marvin/marvin/lib/base.py b/tools/marvin/marvin/lib/base.py
index 5bad6b7..7443373 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)


Mime
View raw message