incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h...@apache.org
Subject [21/50] [abbrv] git commit: CLOUDSTACK-995: fix failed to detect centos 6.2
Date Mon, 21 Jan 2013 11:18:50 GMT
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/0b60c0d3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/0b60c0d3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/0b60c0d3

Branch: refs/heads/cloud-agent-with-openvswitch
Commit: 0b60c0d3c93c87d9db384f01ef53d733d9322e9a
Parents: 8c5b82d
Author: Edison Su <sudison@gmail.com>
Authored: Thu Jan 17 11:02:04 2013 -0800
Committer: Edison Su <sudison@gmail.com>
Committed: Thu Jan 17 11:05:03 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/0b60c0d3/python/lib/cloudutils/utilities.py
----------------------------------------------------------------------
diff --git a/python/lib/cloudutils/utilities.py b/python/lib/cloudutils/utilities.py
index 3f5f2a9..c9d1e33 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") 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"


Mime
View raw message