CLOUDSTACK-1642: Add support CentOS 6.4

Fix the test string to match against "CentOS 6.x"
This commit is contained in:
Hiroaki KAWAI 2013-03-26 13:16:37 +09:00
parent c0d2c1b958
commit c412a7a2df
1 changed files with 1 additions and 1 deletions

View File

@ -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") != -1 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.") != -1:
self.distro = "RHEL6"
elif version.find("CentOS release") != -1:
self.distro = "CentOS"