From 75d01971e8d5f27f65ba0b98fc6d9aba057757e7 Mon Sep 17 00:00:00 2001 From: Kishan Kavala Date: Tue, 16 Sep 2014 20:59:37 +0530 Subject: [PATCH] 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 --- python/lib/cloudutils/utilities.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/lib/cloudutils/utilities.py b/python/lib/cloudutils/utilities.py index f7f25f4ca00..ea0384b1439 100755 --- a/python/lib/cloudutils/utilities.py +++ b/python/lib/cloudutils/utilities.py @@ -112,6 +112,8 @@ class Distribution: version = file("/etc/redhat-release").readline() 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: self.distro = "RHEL6" + elif version.find("Red Hat Enterprise Linux Server release 7") != -1: + self.distro = "RHEL6" elif version.find("CentOS release") != -1: self.distro = "CentOS" else: