From 193fea0a6005cdf6d0bebb2c4956d5fd01f9cb49 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/Client/Tools/POSIX.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib/Client/Tools') diff --git a/src/lib/Client/Tools/POSIX.py b/src/lib/Client/Tools/POSIX.py index 847116286..5f380023b 100644 --- a/src/lib/Client/Tools/POSIX.py +++ b/src/lib/Client/Tools/POSIX.py @@ -319,6 +319,8 @@ class POSIX(Bcfg2.Client.Tools.Tool): [entry.append(XML.Element('Prune', path=x)) \ for x in ex_ents] self.prune_list += ex_ents + elif self.prune_list: + pruneTrue = False except OSError: ex_ents = [] pruneTrue = True -- cgit v1.2.3-1-g7c22