File 0001-Detect-openSUSE-and-SLES.patch of Package python-azure-agent
From c31fb2403a67c80c183773c8a16885577a1a7099 Mon Sep 17 00:00:00 2001
From: Robert Schweikert <rjschwei@suse.com>
Date: Mon, 2 Apr 2018 11:26:00 -0400
Subject: [PATCH] - Detect openSUSE and SLES + For openSUSE Leap and SLES >=
15 Python 3 is used and the distro is identified as "opensuse" and "sles"
while in Python 2 both were lumped together as "suse" + Closes #1089
---
azurelinuxagent/common/osutil/factory.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/azurelinuxagent/common/osutil/factory.py b/azurelinuxagent/common/osutil/factory.py
index 5ee611f..4d4f501 100644
--- a/azurelinuxagent/common/osutil/factory.py
+++ b/azurelinuxagent/common/osutil/factory.py
@@ -69,7 +69,7 @@ def get_osutil(distro_name=DISTRO_NAME,
if distro_name == "coreos" or distro_code_name == "coreos":
return CoreOSUtil()
- if distro_name == "suse":
+ if distro_name in ("suse", "sles", "opensuse"):
if distro_full_name == 'SUSE Linux Enterprise Server' \
and Version(distro_version) < Version('12') \
or distro_full_name == 'openSUSE' and Version(distro_version) < Version('13.2'):
--
2.13.6