summaryrefslogtreecommitdiffstats
path: root/cobbler/pxegen.py
diff options
context:
space:
mode:
Diffstat (limited to 'cobbler/pxegen.py')
-rw-r--r--cobbler/pxegen.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cobbler/pxegen.py b/cobbler/pxegen.py
index 0191e782..f6cd13c8 100644
--- a/cobbler/pxegen.py
+++ b/cobbler/pxegen.py
@@ -223,6 +223,8 @@ class PXEGen:
listfile = open(os.path.join(s390path, "profile_list"),"w+")
for profile in profile_list:
distro = profile.get_conceptual_parent()
+ if distro is None:
+ raise CX(_("profile is missing distribution: %s, %s") % (profile.name, profile.distro))
if distro.arch == "s390x":
listfile.write("%s\n" % profile.name)
f2 = os.path.join(self.bootloc, "s390x", profile.name)