8000 Remove trailing colon char from Red Hat CPE automatus detection. by ggbecker · Pull Request #13456 · ComplianceAsCode/content · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Remove trailing colon char from Red Hat CPE automatus detection. #13456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

ggbecker
Copy link
Member

Description:

Remove trailing colon char from Red Hat CPE automatus detection.

The file /etc/system-release-cpe now contains the following format:

cpe:/o:redhat:enterprise_linux:10.1

Whereas the old version had the trailing ::baseos part. cpe:/o:redhat:enterprise_linux:10::baseos

This change should still be able to match both formats.

Rationale:

  • Fixes automatus fails such:
    ValueError: Unable to deduce a platform from these CPEs: ['cpe:/o:redhat:enterprise_linux:10.1']

The file /etc/system-release-cpe now contains the following format:

cpe:/o:redhat:enterprise_linux:10.1

Whereas the old version had the trailing ::baseos part.
cpe:/o:redhat:enterprise_linux:10::baseos
@ggbecker ggbecker added this to the 0.1.77 milestone May 13, 2025
@ggbecker ggbecker added the bugfix Fixes to reported bugs. label May 13, 2025
@jan-cerny
Copy link
Collaborator

This PR is a duplicate of PR #13442

@jan-cerny jan-cerny closed this May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fixes to reported bugs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0