diff options
author | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-04-20 18:57:26 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-04-20 18:57:26 -0400 |
commit | b37640d5a5ed6c0399946d12b9d45f600664ed20 (patch) | |
tree | de3a27082826440adb9efcec5a4c6365c3295b8e /cobbler/collection_repos.py | |
parent | d786a320b2f381116d48d6b36fd4ae3e41fb9dae (diff) | |
download | third_party-cobbler-b37640d5a5ed6c0399946d12b9d45f600664ed20.tar.gz third_party-cobbler-b37640d5a5ed6c0399946d12b9d45f600664ed20.tar.xz third_party-cobbler-b37640d5a5ed6c0399946d12b9d45f600664ed20.zip |
Fix to make "repo delete" functional after the CLI refactoring.
Diffstat (limited to 'cobbler/collection_repos.py')
-rw-r--r-- | cobbler/collection_repos.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cobbler/collection_repos.py b/cobbler/collection_repos.py index 726d875..18d4179 100644 --- a/cobbler/collection_repos.py +++ b/cobbler/collection_repos.py @@ -43,10 +43,14 @@ class Repos(collection.Collection): else: return "/var/lib/cobbler/repos" - def remove(self,name): + def remove(self,name,with_delete=False): """ Remove element named 'name' from the collection """ + + # NOTE: with_delete isn't currently meaningful + # but is left in for consistancy in the API. + if self.find(name): self._run_triggers(self.listing[name], "/var/lib/cobbler/triggers/delete/repo/*") del self.listing[name] |