From a2493b5852d6e2a47ed7b8a61b2d5756d969f23b Mon Sep 17 00:00:00 2001 From: Edison Su Date: Mon, 1 Aug 2011 15:54:16 -0700 Subject: [PATCH] add scientific linux 6 and centos 6 --- python/lib/cloudutils/utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/lib/cloudutils/utilities.py b/python/lib/cloudutils/utilities.py index c0b32480ae4..6641c736527 100644 --- a/python/lib/cloudutils/utilities.py +++ b/python/lib/cloudutils/utilities.py @@ -92,7 +92,7 @@ class Distribution: 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: + 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"): self.distro = "RHEL6" elif version.find("CentOS release") != -1: self.distro = "CentOS"