File fix-cobbler-buildiso.dif of Package cobbler.8146

Index: cobbler-2.6.6/cobbler/action_buildiso.py
===================================================================
--- cobbler-2.6.6.orig/cobbler/action_buildiso.py
+++ cobbler-2.6.6/cobbler/action_buildiso.py
@@ -164,8 +164,12 @@ class BuildIso:
              if dist.breed == "suse":
                  if data.has_key("proxy") and data["proxy"] != "":
                      append_line += " proxy=%s" % data["proxy"]
-                 if data["kernel_options"].has_key("install") and data["kernel_options"]["install"] != "":
-                     append_line += " install=%s" % data["kernel_options"]["install"]
+                 if data["kernel_options"].has_key("install"):
+                     v = data["kernel_options"]["install"]
+                     if isinstance(v, list):
+                         v = v[0]
+                     if v:
+                         append_line += " install=%s" % v
                      del data["kernel_options"]["install"]
                  else:
                      append_line += " install=http://%s:%s/cblr/links/%s" % (