From defe28ec26a1903c052c94490a7cd625189e92b6 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Thu, 12 Feb 2009 18:14:24 -0500 Subject: Working on moving stock triggers over to be python based, while still supporting shell triggers. These execute faster and can use native API handles without reloading penalties. Unit tests still have some errors, so we're not done with this. --- cobbler/action_sync.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cobbler/action_sync.py') diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py index 4ebe027e..78f3c3d5 100644 --- a/cobbler/action_sync.py +++ b/cobbler/action_sync.py @@ -85,7 +85,7 @@ class BootSync: print "- running pre-sync triggers" # run pre-triggers... - utils.run_triggers(None, "/var/lib/cobbler/triggers/sync/pre/*") + utils.run_triggers(self.api, None, "/var/lib/cobbler/triggers/sync/pre/*") # (paranoid) in case the pre-trigger modified any objects... @@ -141,7 +141,7 @@ class BootSync: # run post-triggers if self.verbose: print "- running post-sync triggers" - utils.run_triggers(None, "/var/lib/cobbler/triggers/sync/post/*") + utils.run_triggers(self.api, None, "/var/lib/cobbler/triggers/sync/post/*") return True def clean_trees(self): -- cgit