Add CentOS to Linux distribution mapping

Idea ID 1664852

Add CentOS to Linux distribution mapping

Currently when running the Inventory Discovery by Scanner job, Linux distributions, such as Red Hat and SuSE are mapped by calling TTY_Connection_Utils.mappingLinuxDistribution(strDistribution). This produces values such as; Red Hat(Linux) and SuSE(Linux).

This is a request to added CentOS(Linux) as a value to that mapping. Currently when CentOS is discovered the value Linux is returned.

Below is an example of the code change:

    @staticmethod
    def mappingLinuxDistribution(strDistribution):
        if re.search('Ubuntu', strDistribution):
            return 'Ubuntu(Linux)'
        elif re.search('Red Hat', strDistribution):
            return 'Red Hat(Linux)'
        elif re.search('Debian', strDistribution):
            return 'Debian(Linux)'
        elif re.search('SUSE', strDistribution):
            return 'SuSE(Linux)'
        elif re.search('CentOS', strDistribution):
            return 'CentOS(Linux)'
        return 'Linux'
3 Comments
Micro Focus Expert
Micro Focus Expert
Status changed to: Waiting for Votes

The idea has received an initial review to ensure adherence to our idea submission and community guidelines. More information may be needed at this stage and we expect the community to help prioritize the idea with comments and voting

Outstanding Contributor.
Outstanding Contributor.

Please also add CentOS to the following scripts as well:

modeling.py - Constant "OS_TYPE_AND_CLASS_TO_OS_FAMILY_MAP"

InventoryUtils.py - Constant "UNIX_PLATFORM"

Micro Focus Expert
Micro Focus Expert
Status changed to: Delivered

This idea has been implemented in product release CP2020.02!   Thanks to all of our contributors for helping us continue to improve our products!

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.