summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2013-01-24 04:41:56 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2013-11-22 11:41:27 +0100
commit9f376ec3c54e5eed60e3a9eff449900e462b6a51 (patch)
tree16a5a62c6ecb8cc45090a75150d87dece8498e1b
parentb49354899386ac1167b5d3c20d175e76d99d941c (diff)
downloadbcfg2-9f376ec3c54e5eed60e3a9eff449900e462b6a51.tar.gz
bcfg2-9f376ec3c54e5eed60e3a9eff449900e462b6a51.tar.bz2
bcfg2-9f376ec3c54e5eed60e3a9eff449900e462b6a51.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)
-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 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