Skip to content

Commit 75d0197

Browse files
committed
CLOUDSTACK-7546: cloudstack-setup-agent considers distro as RHEL5 if no conditions match. Add check to identify RHEL7 distro and consider it as RHEL6. If there is anything specific required for RHEL7, it can be added later
1 parent a1e8d5e commit 75d0197

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

python/lib/cloudutils/utilities.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ def __init__(self):
112112
version = file("/etc/redhat-release").readline()
113113
if version.find("Red Hat Enterprise Linux Server release 6") != -1 or version.find("Scientific Linux release 6") != -1 or version.find("CentOS Linux release 6") != -1 or version.find("CentOS release 6.") != -1:
114114
self.distro = "RHEL6"
115+
elif version.find("Red Hat Enterprise Linux Server release 7") != -1:
116+
self.distro = "RHEL6"
115117
elif version.find("CentOS release") != -1:
116118
self.distro = "CentOS"
117119
else:

0 commit comments

Comments
 (0)