summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cobbler/collection_distros.py1
-rw-r--r--cobbler/collection_profiles.py1
-rw-r--r--cobbler/collection_repos.py6
-rw-r--r--cobbler/collection_systems.py1
4 files changed, 6 insertions, 3 deletions
diff --git a/cobbler/collection_distros.py b/cobbler/collection_distros.py
index 4b88002..70029eb 100644
--- a/cobbler/collection_distros.py
+++ b/cobbler/collection_distros.py
@@ -46,6 +46,7 @@ class Distros(collection.Collection):
"""
Remove element named 'name' from the collection
"""
+ name = name.lower()
# first see if any Groups use this distro
for v in self.config.profiles():
if v.distro == name:
diff --git a/cobbler/collection_profiles.py b/cobbler/collection_profiles.py
index bebaf49..ac1798e 100644
--- a/cobbler/collection_profiles.py
+++ b/cobbler/collection_profiles.py
@@ -45,6 +45,7 @@ class Profiles(collection.Collection):
"""
Remove element named 'name' from the collection
"""
+ name = name.lower()
for v in self.config.systems():
if v.profile == name:
raise CX(_("removal would orphan system: %s") % v.name)
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]
diff --git a/cobbler/collection_systems.py b/cobbler/collection_systems.py
index 952fdba..5ffcea5 100644
--- a/cobbler/collection_systems.py
+++ b/cobbler/collection_systems.py
@@ -48,6 +48,7 @@ class Systems(collection.Collection):
"""
Remove element named 'name' from the collection
"""
+ name = name.lower()
if self.find(name):
if with_delete:
self._run_triggers(self.listing[name], "/var/lib/cobbler/triggers/delete/system/pre/*")