summaryrefslogtreecommitdiffstats
path: root/cobbler/collection_profiles.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-04-16 15:59:43 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-04-16 15:59:43 -0400
commit8b638631f7e8c90cf9e51188523332977caf3b91 (patch)
tree7f33fe947846fe1a75052b69f37087cd09463838 /cobbler/collection_profiles.py
parentd8b696d10eac14603729f45c4ff232734f28e7a7 (diff)
downloadthird_party-cobbler-8b638631f7e8c90cf9e51188523332977caf3b91.tar.gz
third_party-cobbler-8b638631f7e8c90cf9e51188523332977caf3b91.tar.xz
third_party-cobbler-8b638631f7e8c90cf9e51188523332977caf3b91.zip
Implemented trigger support for tying in with other software.
Diffstat (limited to 'cobbler/collection_profiles.py')
-rw-r--r--cobbler/collection_profiles.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cobbler/collection_profiles.py b/cobbler/collection_profiles.py
index cac69fa..8425391 100644
--- a/cobbler/collection_profiles.py
+++ b/cobbler/collection_profiles.py
@@ -47,10 +47,11 @@ class Profiles(collection.Collection):
if v.profile == name:
raise cexceptions.CobblerException("orphan_system",v.name)
if self.find(name):
- del self.listing[name]
if with_delete:
lite_sync = action_litesync.BootLiteSync(self.config)
lite_sync.remove_single_profile(name)
+ self._run_triggers(self.listing[name], "/var/lib/cobbler/triggers/delete/profile/*")
+ del self.listing[name]
return True
raise cexceptions.CobblerException("delete_nothing")