From 2d09aa6ef5ff0112517c2bdfaaf0fade0c8bffef Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 7 Apr 2017 10:55:20 -0700 Subject: [PATCH] Fix recursive `create()` call on timeout It wasn't passing textinst, so it'd crash on the first retry. Signed-off-by: Adam Williamson --- createhdds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/createhdds.py b/createhdds.py index 57f6ff4..e5b7070 100755 --- a/createhdds.py +++ b/createhdds.py @@ -273,7 +273,7 @@ class VirtInstallImage(object): os.remove(tmpfile) if retries: logger.info("Retrying: %s retries remain after this", str(retries)) - return self.create(retries=retries-1) + return self.create(textinst, retries=retries-1) else: sys.exit("Image creation timed out too many times!") if ret > 0: