From cd47ea485e6be6327c3b67323dc55c0533d4f256 Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Tue, 25 Sep 2012 19:41:27 -0500 Subject: 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 --- src/lib/Bcfg2/Client/Tools/SELinux.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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""" -- cgit v1.2.3-1-g7c22