mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Ignore errors from shutil.rmtree when removing temporary directory
This commit is contained in:
@@ -380,7 +380,7 @@ def scm_archive_role(scm, role_url, role_version, role_name):
|
||||
print " in directory %s" % tempdir
|
||||
return False
|
||||
|
||||
shutil.rmtree(tempdir)
|
||||
shutil.rmtree(tempdir, ignore_errors=True)
|
||||
|
||||
return temp_file.name
|
||||
|
||||
|
||||
Reference in New Issue
Block a user