Updated Branches: refs/heads/network-refactor ddff37b6a -> 93a89b159
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/93a89b15 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/93a89b15 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/93a89b15 Branch: refs/heads/network-refactor Commit: 93a89b1591caea68e69cb1cea8a4f4ad8e8e0999 Parents: ddff37b Author: Edison Su <[email protected]> Authored: Thu Jan 17 11:02:04 2013 -0800 Committer: Edison Su <[email protected]> Committed: Fri Jan 18 14:33:06 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/93a89b15/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"
