Skip to content

Commit 6ade5da

Browse files
committed
CLOUDSTACK-1642: Add support CentOS 6.4
Fix the test string to match against "CentOS 6.x"
1 parent ac18b9b commit 6ade5da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/lib/cloudutils/utilities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def __init__(self):
110110
self.distro = "Fedora"
111111
elif os.path.exists("/etc/redhat-release"):
112112
version = file("/etc/redhat-release").readline()
113-
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:
113+
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:
114114
self.distro = "RHEL6"
115115
elif version.find("CentOS release") != -1:
116116
self.distro = "CentOS"

0 commit comments

Comments
 (0)