From c412a7a2df4edff1f295aeb91b98d6c7a575a417 Mon Sep 17 00:00:00 2001 From: Hiroaki KAWAI Date: Tue, 26 Mar 2013 13:16:37 +0900 Subject: [PATCH] CLOUDSTACK-1642: Add support CentOS 6.4 Fix the test string to match against "CentOS 6.x" --- python/lib/cloudutils/utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/lib/cloudutils/utilities.py b/python/lib/cloudutils/utilities.py index df09099a07f..b7c2a82dcbe 100755 --- a/python/lib/cloudutils/utilities.py +++ b/python/lib/cloudutils/utilities.py @@ -106,7 +106,7 @@ class Distribution: self.distro = "Fedora" elif os.path.exists("/etc/redhat-release"): 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.2") != -1 or version.find("CentOS release 6.3") != -1: + 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("CentOS release") != -1: self.distro = "CentOS"