From c59d843cc5b10c113764af41e52e0f80f82beaf0 Mon Sep 17 00:00:00 2001 From: Edison Su Date: Mon, 29 Aug 2011 17:57:10 -0700 Subject: [PATCH] detect centos 6.0 --- python/lib/cloudutils/utilities.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python/lib/cloudutils/utilities.py b/python/lib/cloudutils/utilities.py index d9f47e46088..17c81573607 100644 --- a/python/lib/cloudutils/utilities.py +++ b/python/lib/cloudutils/utilities.py @@ -88,11 +88,9 @@ class Distribution: if os.path.exists("/etc/fedora-release"): self.distro = "Fedora" - elif os.path.exists("/etc/centos-release"): - self.distro = "CentOS" 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 release 6") != -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: self.distro = "RHEL6" elif version.find("CentOS release") != -1: self.distro = "CentOS"