Skip to content

Refactor osdetect for rhel family OSes#464

Open
fabi200123 wants to merge 1 commit into
cloudbase:masterfrom
fabi200123:refactor-osdetect
Open

Refactor osdetect for rhel family OSes#464
fabi200123 wants to merge 1 commit into
cloudbase:masterfrom
fabi200123:refactor-osdetect

Conversation

@fabi200123

Copy link
Copy Markdown
Contributor

This PR refactors the osdetect for the OSes that are RHEL related. It adds a common.py where the detect_os_from_os_release is defined to return the proper info from /etc/os-release:

    return {
        "os_type": constants.OS_TYPE_LINUX,
        "distribution_name": distribution_name,
        "release_version": version,
        "friendly_release_name": "%s Version %s" % (
            distribution_name, version)}

It keeps the previous format for distribution_name based on DISTRO_IDENTIFIER.

@fabi200123 fabi200123 marked this pull request as draft July 1, 2026 09:34
@fabi200123 fabi200123 force-pushed the refactor-osdetect branch from bfd6e77 to a4ee503 Compare July 1, 2026 10:37
@fabi200123 fabi200123 marked this pull request as ready for review July 1, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant