summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/Client/Tools/Action.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/Client/Tools/Action.py b/src/lib/Client/Tools/Action.py
index bc57a0e27..4e85e3a72 100644
--- a/src/lib/Client/Tools/Action.py
+++ b/src/lib/Client/Tools/Action.py
@@ -85,4 +85,8 @@ class Action(Bcfg2.Client.Tools.Tool):
for action in bundle.findall("Action"):
if action.get('timing') in ['post', 'both'] and \
action.get('when') != 'modified':
- states[action] = self.RunAction(action)
+ if self.setup['decision'] == 'whitelist':
+ if action in self.setup['decision_list']:
+ states[action] = self.RunAction(action)
+ else:
+ states[action] = self.RunAction(action)