Fix recursive create() call on timeout

It wasn't passing textinst, so it'd crash on the first retry.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2017-04-07 10:55:20 -07:00
parent dfc1c216c0
commit 2d09aa6ef5

View File

@ -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: