Skip to content

Commit

Permalink
don't purge if no goal state file exists
Browse files Browse the repository at this point in the history
  • Loading branch information
pgombar committed Nov 3, 2020
1 parent a71159f commit 21ebd55
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion azurelinuxagent/common/utils/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ def flush(self):
return

archive_name = self._get_archive_name(files)
if archive_name and self._mkdir(archive_name):
if archive_name is None:
return

if self._mkdir(archive_name):
self._archive(files, archive_name)
else:
self._purge(files)
Expand Down

0 comments on commit 21ebd55

Please sign in to comment.