Skip to content
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

CFE-4342: When failing to detect platform, inventory attribute "OS" now defaults to PRETTY_NAME from os-release as a fallback #2850

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

olehermanse
Copy link
Member

@olehermanse olehermanse commented Feb 28, 2024

Merge together:

cfengine/core#5460
#2850

@olehermanse olehermanse changed the title CFE-4342: When failing to detect platform, inventory attribute "OS" now defaultss to PRETTY_NAME from os-release as a fallback CFE-4342: When failing to detect platform, inventory attribute "OS" now defaults to PRETTY_NAME from os-release as a fallback Feb 28, 2024
…s to PRETTY_NAME from os-release as a fallback

This is only a fallback / last resort, in the case where the C code puts "Unknown" into the sys.os_name_human variable.

Also adding a warning to the agent in this case:

cfengine/core#5460

Ticket: CFE-4342
Changelog: Title
Signed-off-by: Ole Herman Schumacher Elgesem <[email protected]>
@olehermanse olehermanse added the cherry-pick? Fixes which may need to be cherry-picked to LTS branches label Feb 28, 2024
@olehermanse olehermanse merged commit a14a6b5 into cfengine:master Feb 28, 2024
39 of 40 checks passed
@olehermanse olehermanse deleted the os-pr branch May 27, 2024 10:55
@olehermanse
Copy link
Member Author

Cherry-pick: #2893

@olehermanse olehermanse removed cherry-pick? Fixes which may need to be cherry-picked to LTS branches labels May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants