From 4d2bdfb27d5f69f369379ef65d23c87341b8c797 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 7 Jun 2013 01:32:34 +0200 Subject: 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. --- src/lib/Bcfg2/Client/Tools/POSIX/Directory.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3-1-g7c22