summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-02-14 18:29:41 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-02-14 18:29:41 +0000
commit16a3f299ba1e6358e86d650e8d6b6e0bdc40a93b (patch)
tree90c4d4a4763a2999eec9745efadb9a62faa0473a /src/lib
parentad980e36f52bc8313d02e2fd39224bee36c667e1 (diff)
downloadbcfg2-16a3f299ba1e6358e86d650e8d6b6e0bdc40a93b.tar.gz
bcfg2-16a3f299ba1e6358e86d650e8d6b6e0bdc40a93b.tar.bz2
bcfg2-16a3f299ba1e6358e86d650e8d6b6e0bdc40a93b.zip
attribute update
Toolset verbosity improvements git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1731 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Client/Toolset.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Client/Toolset.py b/src/lib/Client/Toolset.py
index 9cf9ad4b1..2fc518bb9 100644
--- a/src/lib/Client/Toolset.py
+++ b/src/lib/Client/Toolset.py
@@ -347,7 +347,6 @@ class Toolset(object):
def InstallDirectory(self, entry):
'''Install Directory Entry'''
- exists = False
self.CondPrint('verbose', "Installing Directory %s" % (entry.get('name')))
try:
fmode = lstat(entry.get('name'))
@@ -359,10 +358,11 @@ class Toolset(object):
self.CondPrint('verbose', "Failed to unlink %s" % (entry.get('name')))
return False
else:
+ self.CondPrint("debug", "Found a pre-existing directory at %s" % (entry.get('name')))
exists = True
except OSError:
# stat failed
- pass
+ exists = False
if not exists:
try: