summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Client/Frame.py
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2013-01-24 04:41:56 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2014-02-26 13:38:16 +0100
commitcf15f3945c0cc91760e1e8b4348f34407fc7931d (patch)
tree8cf9769faa3808ddae4e612741a3580497f8569d /src/lib/Bcfg2/Client/Frame.py
parent4d64d990b7a12ec2400488358fd935f0c5894e24 (diff)
downloadbcfg2-cf15f3945c0cc91760e1e8b4348f34407fc7931d.tar.gz
bcfg2-cf15f3945c0cc91760e1e8b4348f34407fc7931d.tar.bz2
bcfg2-cf15f3945c0cc91760e1e8b4348f34407fc7931d.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/lib/Bcfg2/Client/Frame.py')
-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