summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2013-06-07 01:32:34 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2013-07-03 11:58:44 +0200
commitf3d4bca31653add18e359f24bf89bae50714d1ad (patch)
treec24b90218ac8c87211de57039215279b6aa6680a
parent7d7192eacb97506f17b492eb3de76ffa18570ce7 (diff)
downloadbcfg2-f3d4bca31653add18e359f24bf89bae50714d1ad.tar.gz
bcfg2-f3d4bca31653add18e359f24bf89bae50714d1ad.tar.bz2
bcfg2-f3d4bca31653add18e359f24bf89bae50714d1ad.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