summaryrefslogtreecommitdiff
path: root/bin/waagent2.0
diff options
context:
space:
mode:
Diffstat (limited to 'bin/waagent2.0')
-rw-r--r--bin/waagent2.014
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/waagent2.0 b/bin/waagent2.0
index 80af1c7..1a72ba7 100644
--- a/bin/waagent2.0
+++ b/bin/waagent2.0
@@ -1094,6 +1094,18 @@ class centosDistro(redhatDistro):
super(centosDistro,self).__init__()
############################################################
+# eulerosDistro
+############################################################
+
+class eulerosDistro(redhatDistro):
+ """
+ EulerOS Distro concrete class
+ Put EulerOS specific behavior here...
+ """
+ def __init__(self):
+ super(eulerosDistro,self).__init__()
+
+############################################################
# oracleDistro
############################################################
@@ -6016,6 +6028,8 @@ def DistInfo(fullname=0):
if 'linux_distribution' in dir(platform):
distinfo = list(platform.linux_distribution(full_distribution_name=fullname))
distinfo[0] = distinfo[0].strip() # remove trailing whitespace in distro name
+ if os.path.exists("/etc/euleros-release"):
+ distinfo[0] = "euleros"
return distinfo
else:
return platform.dist()