diff options
-rw-r--r-- | CHANGELOG | 1 | ||||
-rw-r--r-- | cobbler/collection_distros.py | 2 | ||||
-rw-r--r-- | cobbler/collection_profiles.py | 2 |
3 files changed, 3 insertions, 2 deletions
@@ -19,6 +19,7 @@ Cobbler CHANGELOG - added BuildRequires to help build on other platforms - relocate cgi-bin files to cgi-bin/cobbler for namespacing - fix syslog logging for systems not in the cobbler DB. +- fix bug in which non-lowercase intermediate objects could be deleted * Thu Aug 30 2007 - 0.6.1 - re enable --resolve in yumdownloader (cobbler repo mgmt feature) 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: diff --git a/cobbler/collection_profiles.py b/cobbler/collection_profiles.py index 7331b08..b11762f 100644 --- a/cobbler/collection_profiles.py +++ b/cobbler/collection_profiles.py @@ -47,7 +47,7 @@ class Profiles(collection.Collection): """ name = name.lower() for v in self.config.systems(): - if v.profile == name: + if v.profile.lower() == name: raise CX(_("removal would orphan system: %s") % v.name) if self.find(name=name): if with_delete: |