From 0f30ba306d8e791a5ee693b2e73276a0b64e8d43 Mon Sep 17 00:00:00 2001 From: Christopher Boumenot Date: Mon, 30 Apr 2018 17:10:20 -0700 Subject: [PATCH] delete after extract --- azurelinuxagent/ga/exthandlers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/azurelinuxagent/ga/exthandlers.py b/azurelinuxagent/ga/exthandlers.py index 024c7f5547..8bdbe0653c 100644 --- a/azurelinuxagent/ga/exthandlers.py +++ b/azurelinuxagent/ga/exthandlers.py @@ -736,6 +736,7 @@ def download(self): try: fileutil.write_file(self.pkg_file, bytearray(package), asbin=True) zipfile.ZipFile(self.pkg_file).extractall(self.get_base_dir()) + os.remove(self.pkg_file) except IOError as e: fileutil.clean_ioerror(e, paths=[self.get_base_dir(), self.pkg_file])