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_distros.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_distros.py')
-rw-r--r-- | cobbler/collection_distros.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cobbler/collection_distros.py b/cobbler/collection_distros.py index d632ee5..8662adf 100644 --- a/cobbler/collection_distros.py +++ b/cobbler/collection_distros.py @@ -24,7 +24,7 @@ TESTMODE = False class Distros(collection.Collection): def collection_type(self): - return "distribution" + return "distro" def factory_produce(self,config,seed_data): """ @@ -53,6 +53,7 @@ class Distros(collection.Collection): 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/distro/*") del self.listing[name] return True raise cexceptions.CobblerException("delete_nothing") |