On some nfs mounts the shutil.rmtree may traceback
when removing some files. This is not such a problem
so we can ignore these errors and continue.
---
src/pylorax/yumhelper.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/pylorax/yumhelper.py b/src/pylorax/yumhelper.py
index 04ad140..904fdc2 100644
--- a/src/pylorax/yumhelper.py
+++ b/src/pylorax/yumhelper.py
@@ -117,7 +117,7 @@ class LoraxYumHelper(object):
if os.path.islink(fname) or os.path.isfile(fname):
os.unlink(fname)
else:
- shutil.rmtree(fname)
+ shutil.rmtree(fname, ignore_errors=True)