summaryrefslogtreecommitdiffstats
path: root/cobbler/collection_distros.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-09-27 19:02:23 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-09-27 19:02:23 -0400
commit155daee4e920f22a9ae1d1e97d11d4f44b2d2b8e (patch)
treeaa668f85235db61ba2d3ae9d752e5a9d78ac3c9a /cobbler/collection_distros.py
parent80d02d941fa5dcfee655e7b7cc576c21b6366894 (diff)
downloadthird_party-cobbler-155daee4e920f22a9ae1d1e97d11d4f44b2d2b8e.tar.gz
third_party-cobbler-155daee4e920f22a9ae1d1e97d11d4f44b2d2b8e.tar.xz
third_party-cobbler-155daee4e920f22a9ae1d1e97d11d4f44b2d2b8e.zip
Fix bug where non-lowercase intermediate objects could be deleted, orphaning objects
below them.
Diffstat (limited to 'cobbler/collection_distros.py')
-rw-r--r--cobbler/collection_distros.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cobbler/collection_distros.py b/cobbler/collection_distros.py
index 9ab9e3c..00e543d 100644
--- a/cobbler/collection_distros.py
+++ b/cobbler/collection_distros.py
@@ -49,7 +49,7 @@ class Distros(collection.Collection):
name = name.lower()
# first see if any Groups use this distro
for v in self.config.profiles():
- if v.distro == name:
+ if v.distro.lower() == name:
raise CX(_("removal would orphan profile: %s") % v.name)
if self.find(name=name):
if with_delete: