From 590f5a525bccded6866461b4ff3e1bb7adae086b Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Mon, 14 Sep 2015 10:34:19 -0400 Subject: [PATCH] urlfetcher: Clear cached ftp connection on cleanupLocation Reported-by: Chun Yan Liu --- virtinst/urlfetcher.py | 1 + 1 file changed, 1 insertion(+) diff --git a/virtinst/urlfetcher.py b/virtinst/urlfetcher.py index 40f7c05..cda67a2 100644 --- a/virtinst/urlfetcher.py +++ b/virtinst/urlfetcher.py @@ -167,6 +167,7 @@ class _FTPImageFetcher(_URIImageFetcher): except: logging.debug("Error quitting ftp connection", exc_info=True) + self.ftp = None def hasFile(self, filename): path = self._make_path(filename) -- 1.8.5.6