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_repos.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_repos.py')
-rw-r--r-- | cobbler/collection_repos.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cobbler/collection_repos.py b/cobbler/collection_repos.py index 0ae9db3..726d875 100644 --- a/cobbler/collection_repos.py +++ b/cobbler/collection_repos.py @@ -26,7 +26,7 @@ TESTMODE = False class Repos(collection.Collection): def collection_type(self): - return "repository" + return "repo" def factory_produce(self,config,seed_data): """ @@ -48,6 +48,7 @@ class Repos(collection.Collection): Remove element named 'name' from the collection """ if self.find(name): + self._run_triggers(self.listing[name], "/var/lib/cobbler/triggers/delete/repo/*") del self.listing[name] return True raise cexceptions.CobblerException("delete_nothing") |