File fix_sle_detection.patch of Package cobbler.2068

Index: cobbler-2.6.6/cobbler/utils.py
===================================================================
--- cobbler-2.6.6.orig/cobbler/utils.py
+++ cobbler-2.6.6/cobbler/utils.py
@@ -1001,7 +1001,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