diff options
author | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-04-16 15:59:43 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-04-16 15:59:43 -0400 |
commit | 8b638631f7e8c90cf9e51188523332977caf3b91 (patch) | |
tree | 7f33fe947846fe1a75052b69f37087cd09463838 /cobbler/collection_profiles.py | |
parent | d8b696d10eac14603729f45c4ff232734f28e7a7 (diff) | |
download | third_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.py | 3 |
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") |