cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ka...@apache.org
Subject git commit: refs/heads/master - CLOUDSTACK-1642: Add support CentOS 6.4
Date Tue, 26 Mar 2013 04:17:46 GMT
Updated Branches:
  refs/heads/master ac18b9b0f -> 6ade5da25


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/6ade5da2
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/6ade5da2
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/6ade5da2

Branch: refs/heads/master
Commit: 6ade5da25f8f265611f5b959f4e763ae3f070155
Parents: ac18b9b
Author: Hiroaki KAWAI <kawai@stratosphere.co.jp>
Authored: Tue Mar 26 13:16:37 2013 +0900
Committer: Hiroaki KAWAI <kawai@stratosphere.co.jp>
Committed: Tue Mar 26 13:16:37 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/6ade5da2/python/lib/cloudutils/utilities.py
----------------------------------------------------------------------
diff --git a/python/lib/cloudutils/utilities.py b/python/lib/cloudutils/utilities.py
index 739a483..f7f25f4 100755
--- a/python/lib/cloudutils/utilities.py
+++ b/python/lib/cloudutils/utilities.py
@@ -110,7 +110,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"


Mime
View raw message