summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools/POSIX.py
diff options
context:
space:
mode:
authorSol Jerome <solj@ices.utexas.edu>2009-10-14 22:45:45 +0000
committerSol Jerome <solj@ices.utexas.edu>2009-10-14 22:45:45 +0000
commit3f4cfa355f9f3c20a1c9dd13bd224416995be100 (patch)
tree491a5a2661e0a4736d669144a1762c80e2f55ac5 /src/lib/Client/Tools/POSIX.py
parent929574f22d8a92383b146f8a992c1707da895632 (diff)
downloadbcfg2-3f4cfa355f9f3c20a1c9dd13bd224416995be100.tar.gz
bcfg2-3f4cfa355f9f3c20a1c9dd13bd224416995be100.tar.bz2
bcfg2-3f4cfa355f9f3c20a1c9dd13bd224416995be100.zip
Add bcfg2.conf option so that client can always run in paranoid mode
You currently must specify the -P command line option in order to run the client in paranoid mode. In order to allow for consistent usage (as specified in ticket #763), this commit adds an option to bcfg2.conf so that the client will always be run in paranoid mode. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5482 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Tools/POSIX.py')
-rw-r--r--src/lib/Client/Tools/POSIX.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/Client/Tools/POSIX.py b/src/lib/Client/Tools/POSIX.py
index 917dc6620..8127d29fe 100644
--- a/src/lib/Client/Tools/POSIX.py
+++ b/src/lib/Client/Tools/POSIX.py
@@ -611,8 +611,9 @@ class POSIX(Bcfg2.Client.Tools.Tool):
return False
# If we get here, then the parent directory should exist
- if entry.get("paranoid", False) and self.setup.get("paranoid", False) \
- and not (entry.get('current_exists', 'true') == 'false'):
+ if (entry.get("paranoid", False) == 'true') and \
+ self.setup.get("paranoid", False) and not \
+ (entry.get('current_exists', 'true') == 'false'):
bkupnam = entry.get('name').replace('/', '_')
# current list of backups for this ConfigFile
bkuplist = [f for f in os.listdir(self.ppath) if