diff options
author | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-06-12 15:56:03 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-06-12 15:56:03 -0400 |
commit | 0b8502cd2209b809ed8b98d8bab0086e169c4a0f (patch) | |
tree | e9419c253c094fd99fc6617b827cd8b2b048116d /cobbler/item_distro.py | |
parent | 297f85a192483a61d921a35b6f7938d3c52e466f (diff) | |
download | third_party-cobbler-0b8502cd2209b809ed8b98d8bab0086e169c4a0f.tar.gz third_party-cobbler-0b8502cd2209b809ed8b98d8bab0086e169c4a0f.tar.xz third_party-cobbler-0b8502cd2209b809ed8b98d8bab0086e169c4a0f.zip |
Add conceptual_parent concept, to allow tree retrieval of objects that may have
intermediate subobjects of the same type in the way.
For instance, the conceptual parent of a subprofile is not the parent profile,
but is the distro object.
Also fixing a bug in is_pxe_supported()
Diffstat (limited to 'cobbler/item_distro.py')
-rw-r--r-- | cobbler/item_distro.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/cobbler/item_distro.py b/cobbler/item_distro.py index a6de931..85742d6 100644 --- a/cobbler/item_distro.py +++ b/cobbler/item_distro.py @@ -158,15 +158,6 @@ class Distro(item.Item): """ kstr = utils.find_kernel(self.kernel) istr = utils.find_initrd(self.initrd) - # old code, as we've relaxed filename requirements: - #if kstr is None: - # kstr = "%s (NOT FOUND)" % self.kernel - #elif os.path.isdir(self.kernel): - # kstr = "%s (FOUND BY SEARCH)" % kstr - #if istr is None: - # istr = "%s (NOT FOUND)" % self.initrd - #elif os.path.isdir(self.initrd): - # istr = "%s (FOUND BY SEARCH)" % istr buf = _("distro : %s\n") % self.name buf = buf + _("kernel : %s\n") % kstr buf = buf + _("initrd : %s\n") % istr |