Ignore errors from shutil.rmtree when removing temporary directory

This commit is contained in:
Daniel Upton 2015-02-09 13:33:48 +00:00
parent 853733c1cd
commit 78fb13657a

View file

@ -380,7 +380,7 @@ def scm_archive_role(scm, role_url, role_version, role_name):
print " in directory %s" % tempdir print " in directory %s" % tempdir
return False return False
shutil.rmtree(tempdir) shutil.rmtree(tempdir, ignore_errors=True)
return temp_file.name return temp_file.name