diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-24 04:41:56 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-06-29 16:28:45 +0200 |
commit | 6750463a917a37d3be0ddddfa4c1da7881ff4fd6 (patch) | |
tree | cca40f2a03653e18aa13f28a38e6199aa5eebace /src | |
parent | 967e84a1e924f72324f2133adf84391f1dee6f74 (diff) | |
download | bcfg2-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.py | 4 |
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 |