Ignore errors from shutil.rmtree when removing temporary directory

This commit is contained in:
Daniel Upton 2015-02-09 13:33:48 +00:00 committed by James Cammarata
parent 8c5f7207f0
commit 1c56c6a3b7

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