1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #10189 from boxofrad/devel

Ignore errors from `shutil.rmtree` when removing temporary directory
This commit is contained in:
Brian Coca 2015-02-09 10:17:05 -05:00
commit 76a5dd7f62

View file

@ -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