File fix_sle_detection.patch of Package cobbler

Index: cobbler-2.8.2/cobbler/utils.py
===================================================================
--- cobbler-2.8.2.orig/cobbler/utils.py
+++ cobbler-2.8.2/cobbler/utils.py
@@ -983,7 +983,10 @@ def check_dist():
     """
     import platform
     try:
-      return platform.linux_distribution()[0].lower().strip()
+      dist = platform.linux_distribution()[0].lower().strip()
+      if "suse" in dist:
+        dist = "suse"
+      return dist
     except AttributeError:
       return platform.dist()[0].lower().strip()
openSUSE Build Service is sponsored by