Updated Branches: refs/heads/4.0 c0d2c1b95 -> c412a7a2d
CLOUDSTACK-1642: Add support CentOS 6.4 Fix the test string to match against "CentOS 6.x" Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/c412a7a2 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c412a7a2 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c412a7a2 Branch: refs/heads/4.0 Commit: c412a7a2df4edff1f295aeb91b98d6c7a575a417 Parents: c0d2c1b Author: Hiroaki KAWAI <[email protected]> Authored: Tue Mar 26 13:16:37 2013 +0900 Committer: Hiroaki KAWAI <[email protected]> Committed: Tue Mar 26 13:28:21 2013 +0900 ---------------------------------------------------------------------- python/lib/cloudutils/utilities.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c412a7a2/python/lib/cloudutils/utilities.py ---------------------------------------------------------------------- diff --git a/python/lib/cloudutils/utilities.py b/python/lib/cloudutils/utilities.py index df09099..b7c2a82 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"
