summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2013-06-07 01:32:34 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2014-02-26 13:38:17 +0100
commit4d2bdfb27d5f69f369379ef65d23c87341b8c797 (patch)
treecbac1b9b1046ad5a4ffd3c03ab78c429b8097c39
parent67dbedcad2ae4ee8a4bb8587f882557092e85bdd (diff)
downloadbcfg2-4d2bdfb27d5f69f369379ef65d23c87341b8c797.tar.gz
bcfg2-4d2bdfb27d5f69f369379ef65d23c87341b8c797.tar.bz2
bcfg2-4d2bdfb27d5f69f369379ef65d23c87341b8c797.zip
Client/Tools/POSIX: fix prune actions
The prune actions was not run. The fix that does not add multiple prune actions on multiple Verify runs in 7077358b1 does not set the pruneTrue flag during the later Verify runs and therefor the prune actions are ignored. This set the pruneTrue flag if the first Verify run, detected some entries that should be pruned.
-rw-r--r--src/lib/Bcfg2/Client/Tools/POSIX/Directory.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Client/Tools/POSIX/Directory.py b/src/lib/Bcfg2/Client/Tools/POSIX/Directory.py
index ceb360d7e..c714a8a6b 100644
--- a/src/lib/Bcfg2/Client/Tools/POSIX/Directory.py
+++ b/src/lib/Bcfg2/Client/Tools/POSIX/Directory.py
@@ -44,6 +44,8 @@ class POSIXDirectory(POSIXTool):
for extra in extras:
Bcfg2.Client.XML.SubElement(entry, 'Prune', name=extra)
self.prune_list += extras
+ elif self.prune_list:
+ prune = False
except OSError:
prune = True