From 9f376ec3c54e5eed60e3a9eff449900e462b6a51 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Thu, 24 Jan 2013 04:41:56 +0100 Subject: Client: always actions do not modify hosts Actions that are executed always, does not set the host statistics to modified. (One always action would lead to always modified hosts) --- src/lib/Bcfg2/Client/Frame.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/Bcfg2/Client/Frame.py b/src/lib/Bcfg2/Client/Frame.py index 781fd2904..d7d64d472 100644 --- a/src/lib/Bcfg2/Client/Frame.py +++ b/src/lib/Bcfg2/Client/Frame.py @@ -524,7 +524,9 @@ class Frame(object): stats.set('state', 'clean') # List bad elements of the configuration - for (data, ename) in [(self.modified, 'Modified'), + mods = [m for m in self.modified + if (m.tag != 'Action' or m.get('when') != 'always')] + for (data, ename) in [(mods, 'Modified'), (self.extra, "Extra"), (good_entries, "Good"), ([entry for entry in self.states -- cgit v1.2.3-1-g7c22