From 6750463a917a37d3be0ddddfa4c1da7881ff4fd6 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/lib/Bcfg2/Client') diff --git a/src/lib/Bcfg2/Client/Frame.py b/src/lib/Bcfg2/Client/Frame.py index 55578f490..24b4f409c 100644 --- a/src/lib/Bcfg2/Client/Frame.py +++ b/src/lib/Bcfg2/Client/Frame.py @@ -521,7 +521,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