You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ed...@apache.org on 2013/01/17 20:02:17 UTC

git commit: CLOUDSTACK-995: fix failed to detect centos 6.2

Updated Branches:
  refs/heads/4.0 9b4ee042e -> cbf37bd52


CLOUDSTACK-995: fix failed to detect centos 6.2


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/cbf37bd5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/cbf37bd5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/cbf37bd5

Branch: refs/heads/4.0
Commit: cbf37bd52328234d95d9b68e96e7c63420d5d1d3
Parents: 9b4ee04
Author: Edison Su <su...@gmail.com>
Authored: Thu Jan 17 11:02:04 2013 -0800
Committer: Edison Su <su...@gmail.com>
Committed: Thu Jan 17 11:02:04 2013 -0800

----------------------------------------------------------------------
 python/lib/cloudutils/utilities.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/cbf37bd5/python/lib/cloudutils/utilities.py
----------------------------------------------------------------------
diff --git a/python/lib/cloudutils/utilities.py b/python/lib/cloudutils/utilities.py
index adf81fc..df09099 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") 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.2") != -1 or version.find("CentOS release 6.3") != -1:
                 self.distro = "RHEL6"
             elif version.find("CentOS release") != -1:
                 self.distro = "CentOS"