Skip to content

Commit

Permalink
delete after extract
Browse files Browse the repository at this point in the history
  • Loading branch information
boumenot committed May 1, 2018
1 parent f5c3bb7 commit 0f30ba3
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 0f30ba3

Please sign in to comment.