summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2012-09-25 19:41:27 -0500
committerSol Jerome <sol.jerome@gmail.com>2012-09-25 19:41:27 -0500
commitcd47ea485e6be6327c3b67323dc55c0533d4f256 (patch)
tree9cb42f31894085a7408c70a82611351f77a02f51 /src/lib
parent59c098f90a27b48d1bf28d60b0b24ce1ad00fd75 (diff)
downloadbcfg2-cd47ea485e6be6327c3b67323dc55c0533d4f256.tar.gz
bcfg2-cd47ea485e6be6327c3b67323dc55c0533d4f256.tar.bz2
bcfg2-cd47ea485e6be6327c3b67323dc55c0533d4f256.zip
SELinux: Fix incorrect return value
Previously, we were not updating the states dict with the correct return value for entries which were dispatched to Install methods via the post_txn_queue. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Bcfg2/Client/Tools/SELinux.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Client/Tools/SELinux.py b/src/lib/Bcfg2/Client/Tools/SELinux.py
index 77937c70c..16aeababe 100644
--- a/src/lib/Bcfg2/Client/Tools/SELinux.py
+++ b/src/lib/Bcfg2/Client/Tools/SELinux.py
@@ -122,8 +122,8 @@ class SELinux(Bcfg2.Client.Tools.Tool):
self.logger.debug("Committing SELinux transaction")
semanage.finish()
self.txn = False
- for func, args, kwargs in self.post_txn_queue:
- func(*args, **kwargs)
+ for func, arg, kwargs in self.post_txn_queue:
+ states[arg] = func(*arg, **kwargs)
def InstallSELinux(self, entry):
"""Dispatch install to the proper method according to type"""