Skip to content

Commit c59d843

Browse files
committed
detect centos 6.0
1 parent 0e3aa3d commit c59d843

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

python/lib/cloudutils/utilities.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,9 @@ def __init__(self):
8888

8989
if os.path.exists("/etc/fedora-release"):
9090
self.distro = "Fedora"
91-
elif os.path.exists("/etc/centos-release"):
92-
self.distro = "CentOS"
9391
elif os.path.exists("/etc/redhat-release"):
9492
version = file("/etc/redhat-release").readline()
95-
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:
93+
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:
9694
self.distro = "RHEL6"
9795
elif version.find("CentOS release") != -1:
9896
self.distro = "CentOS"

0 commit comments

Comments
 (0)