def detect_os_type(self):
        # TODO: Change this to support more distros. For example according to
        # http://unix.stackexchange.com/questions/6345/how-can-i-get-distribution-name-and-version-number-in-a-simple-shell-script
        try:
            distro_info = self.file_get_contents('/etc/redhat-release')
        except IOError as e:
            distro_info = self.file_get_contents('/etc/os-release')

        if 'CentOS' in distro_info:
            return self.os_types[0]
        elif distro_info in 'Red Hat':
            return self.os_types[1]
        elif 'Ubuntu' in distro_info:
            return self.os_types[3]
        elif 'Debian' in distro_info:
            return self.os_types[4]

        else:
            return self.choose_from_list(self.os_types, "Operating System")
dataset/ETHPy150Open GluuFederation/community-edition-setup/setup.py/Setup.detect_os_type/swapped operands of `in`