summaryrefslogtreecommitdiffstats
path: root/src/lib/Client
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2008-02-28 23:54:34 +0000
committerNarayan Desai <desai@mcs.anl.gov>2008-02-28 23:54:34 +0000
commitefc0cbc2305b02c89c5f2bc7d670a992cb6db7d1 (patch)
treed9c034f2d06f4ee6188c5fc3982e4297dcb5248a /src/lib/Client
parent1c090ca77d33dd010b3a9c506f02224d116e7b8b (diff)
downloadbcfg2-efc0cbc2305b02c89c5f2bc7d670a992cb6db7d1.tar.gz
bcfg2-efc0cbc2305b02c89c5f2bc7d670a992cb6db7d1.tar.bz2
bcfg2-efc0cbc2305b02c89c5f2bc7d670a992cb6db7d1.zip
Fix traceback in directory cleanup (patch from jstrunk) (Resolves Ticket #524) [bugfix]
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4393 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client')
-rw-r--r--src/lib/Client/Tools/POSIX.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/Client/Tools/POSIX.py b/src/lib/Client/Tools/POSIX.py
index 3ecda9b55..e4fc182a7 100644
--- a/src/lib/Client/Tools/POSIX.py
+++ b/src/lib/Client/Tools/POSIX.py
@@ -213,6 +213,7 @@ class POSIX(Bcfg2.Client.Tools.Tool):
self.logger.debug("Found a non-directory entry at %s" % (entry.get('name')))
try:
os.unlink(entry.get('name'))
+ exists = False
except OSError:
self.logger.info("Failed to unlink %s" % (entry.get('name')))
return False