summaryrefslogtreecommitdiffstats
path: root/cobbler/collection_repos.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-06-22 12:38:25 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-06-22 12:38:25 -0400
commit87116be1073d8a3868fe0e57f5735f094a548130 (patch)
tree65068f4762eeef35ee1a2c78d96f756d158285c1 /cobbler/collection_repos.py
parent62b2765302033a3a5c94897296edd27c71382a71 (diff)
downloadthird_party-cobbler-87116be1073d8a3868fe0e57f5735f094a548130.tar.gz
third_party-cobbler-87116be1073d8a3868fe0e57f5735f094a548130.tar.xz
third_party-cobbler-87116be1073d8a3868fe0e57f5735f094a548130.zip
Lowercase input on removal (this should really be using the find() method.
Diffstat (limited to 'cobbler/collection_repos.py')
-rw-r--r--cobbler/collection_repos.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cobbler/collection_repos.py b/cobbler/collection_repos.py
index e4e5219..6910535 100644
--- a/cobbler/collection_repos.py
+++ b/cobbler/collection_repos.py
@@ -50,9 +50,9 @@ class Repos(collection.Collection):
Remove element named 'name' from the collection
"""
- # NOTE: with_delete isn't currently meaningful
- # but is left in for consistancy in the API.
-
+ # NOTE: with_delete isn't currently meaningful for repos
+ # but is left in for consistancy in the API. Unused.
+ name = name.lower()
if self.find(name):
self._run_triggers(self.listing[name], "/var/lib/cobbler/triggers/delete/repo/pre/*")
del self.listing[name]