summaryrefslogtreecommitdiffstats
path: root/cobbler/action_sync.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2009-02-12 18:14:24 -0500
committerMichael DeHaan <mdehaan@redhat.com>2009-02-12 18:14:24 -0500
commitdefe28ec26a1903c052c94490a7cd625189e92b6 (patch)
treeb9da7c231c91d07f3efba9cff4583185dfc7f585 /cobbler/action_sync.py
parentd43e836c43052a7e794a488ca792842cd5c4e64c (diff)
downloadcobbler-defe28ec26a1903c052c94490a7cd625189e92b6.tar.gz
cobbler-defe28ec26a1903c052c94490a7cd625189e92b6.tar.xz
cobbler-defe28ec26a1903c052c94490a7cd625189e92b6.zip
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.
Diffstat (limited to 'cobbler/action_sync.py')
-rw-r--r--cobbler/action_sync.py4
1 files changed, 2 insertions, 2 deletions
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):