summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2013-06-07 01:32:34 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2013-06-29 16:28:47 +0200
commit023a4d9a86951541c2591876d37e5f6f55c6d756 (patch)
tree306768f5453fba7a4bf3f9e468e4cf12b814b794
parentdfbb810feb45574d8f921b4b8bda9d8c86fde569 (diff)
downloadbcfg2-023a4d9a86951541c2591876d37e5f6f55c6d756.tar.gz
bcfg2-023a4d9a86951541c2591876d37e5f6f55c6d756.tar.bz2
bcfg2-023a4d9a86951541c2591876d37e5f6f55c6d756.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