fixes to vault/copy

rm _del_ as it might leak memory
renamed to tmp file cleanup
added exception handling when traversing file list, even if one fails try rest
added cleanup to finally to ensure removal in most cases
This commit is contained in:
Brian Coca 2016-04-14 10:31:39 -04:00
commit 5940d3d45b
5 changed files with 18 additions and 13 deletions

View file

@ -194,6 +194,8 @@ class PlaybookExecutor:
finally:
if self._tqm is not None:
self._tqm.cleanup()
if self._loader:
self._loader.cleanup_all_tmp_files()
if self._options.syntax:
display.display("No issues encountered")