Running the 2.0.2-1 on RHEL/CentOS 5 was failing to execute triggers.
The method run_triggers (cobbler/utils.py) accepts logger=None as a parameter, but then assumes that it will never be None and tries to call methods in it.
Using the cobbler CLI, calls went into ProxiedXMLRPCInterface (cobbler/remote.py) which was calling run_triggers without a logger -- so triggers weren't running.
I'm not usually in the cobbler code -- but I hacked around this by adding the snippet below.
Thanks, Rick Dennis
diff --git a/cobbler/utils.py b/cobbler/utils.py index 7470c35..fe3f5c2 100644 --- a/cobbler/utils.py +++ b/cobbler/utils.py @@ -752,6 +752,9 @@ def run_triggers(api,ref,globber,additional=[],logger=None):
# Python triggers first, before shell
+ if logger is None: + logger = main_logger + modules = api.get_modules_in_category(globber) for m in modules: arglist = []
cobbler-devel@lists.fedorahosted.org