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-01-30 01:42:59 +0100
commit4db68de5892cf836544da2e7dfd71433aeebd1e3 (patch)
tree8970bff256af5dbc3f982fe5514b81251260571d /src
parent91126230cde39e3be3f07daa945cde9dc24af4fc (diff)
downloadbcfg2-4db68de5892cf836544da2e7dfd71433aeebd1e3.tar.gz
bcfg2-4db68de5892cf836544da2e7dfd71433aeebd1e3.tar.bz2
bcfg2-4db68de5892cf836544da2e7dfd71433aeebd1e3.zip
Client: always actions do not modify hostsdebian/1.2.3-4
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/Client/Frame.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Client/Frame.py b/src/lib/Client/Frame.py
index 5826b36e8..78b1dd1d9 100644
--- a/src/lib/Client/Frame.py
+++ b/src/lib/Client/Frame.py
@@ -445,7 +445,8 @@ class Frame:
stats.set('state', 'dirty')
# List bad elements of the configuration
- for (data, ename) in [(self.modified, 'Modified'), (self.extra, "Extra"), \
+ 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"), \
([entry for entry in self.states if not \
self.states[entry]], "Bad")]:
container = Bcfg2.Client.XML.SubElement(stats, ename)