summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2013-01-24 04:41:56 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2013-06-29 16:28:45 +0200
commit6750463a917a37d3be0ddddfa4c1da7881ff4fd6 (patch)
treecca40f2a03653e18aa13f28a38e6199aa5eebace /src
parent967e84a1e924f72324f2133adf84391f1dee6f74 (diff)
downloadbcfg2-6750463a917a37d3be0ddddfa4c1da7881ff4fd6.tar.gz
bcfg2-6750463a917a37d3be0ddddfa4c1da7881ff4fd6.tar.bz2
bcfg2-6750463a917a37d3be0ddddfa4c1da7881ff4fd6.zip
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)
Diffstat (limited to 'src')
-rw-r--r--src/lib/Bcfg2/Client/Frame.py4
1 files changed, 3 insertions, 1 deletions
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