Skip to content

Commit

Permalink
Merge pull request #1143 from Azure/pr-delete-zip-file
Browse files Browse the repository at this point in the history
delete after extract
  • Loading branch information
boumenot authored May 1, 2018
2 parents f5c3bb7 + 0f30ba3 commit 7d81e99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions azurelinuxagent/ga/exthandlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 7d81e99

Please sign in to comment.