summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-09-11 17:31:49 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-09-11 17:31:49 +0000
commitd23ad57a34d78861156fc0e9617069f24c95e1c8 (patch)
tree2b537f8559622a3e3a101a2ae483e6bd854b6d53 /src
parent3f1134a665925748b13dc3832e1cfd5722b9c9e8 (diff)
downloadbcfg2-d23ad57a34d78861156fc0e9617069f24c95e1c8.tar.gz
bcfg2-d23ad57a34d78861156fc0e9617069f24c95e1c8.tar.bz2
bcfg2-d23ad57a34d78861156fc0e9617069f24c95e1c8.zip
Fix Paranoid mode
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2240 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Client/Toolset.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Client/Toolset.py b/src/lib/Client/Toolset.py
index 1b3ae46f5..93cc3a0e5 100644
--- a/src/lib/Client/Toolset.py
+++ b/src/lib/Client/Toolset.py
@@ -449,7 +449,7 @@ class Toolset(object):
os.chown(newfile.name, 0, 0)
os.chmod(newfile.name, calcPerms(S_IFREG, entry.get('perms')))
if entry.get("paranoid", False) and self.setup.get("paranoid", False):
- self.saferun("cp %s /var/cache/bcfg2/%s" % (entry.get('name')))
+ self.saferun("cp %s /var/cache/bcfg2/%s" % (entry.get('name'), entry.get('name')))
os.rename(newfile.name, entry.get('name'))
return True
except (OSError, IOError), err: