summaryrefslogtreecommitdiffstats
path: root/cobbler/collection.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2009-03-11 16:57:43 -0400
committerMichael DeHaan <mdehaan@redhat.com>2009-03-11 16:57:43 -0400
commit847384160a68b6ec419d3499613edf17515f9a1c (patch)
treea96cadcc4e918a003e34a7e3d701e34dc867bf1b /cobbler/collection.py
parent92dd699ee4bdef9baa742fc229a6df436adc5ba8 (diff)
downloadcobbler-847384160a68b6ec419d3499613edf17515f9a1c.tar.gz
cobbler-847384160a68b6ec419d3499613edf17515f9a1c.tar.xz
cobbler-847384160a68b6ec419d3499613edf17515f9a1c.zip
Add in a mechanism for a generic "on change" trigger, that is called on all adds/edits/removes and syncs. To be used later by our SCM integration feature, among other things.
Diffstat (limited to 'cobbler/collection.py')
-rw-r--r--cobbler/collection.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/cobbler/collection.py b/cobbler/collection.py
index 3bc15cc7..50c07094 100644
--- a/cobbler/collection.py
+++ b/cobbler/collection.py
@@ -284,6 +284,7 @@ class Collection(serializable.Serializable):
# save the tree, so if neccessary, scripts can examine it.
if with_triggers:
+ self._run_triggers(self.api, ref, "/var/lib/cobbler/triggers/change/*")
self._run_triggers(self.api, ref,"/var/lib/cobbler/triggers/add/%s/post/*" % self.collection_type())