Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Update to allow for malformed CPE_NAME from some OS's #52283
What does this PR do?
Allows for malformed CPE_NAME in /etc/os-release on Amazon Linux 2.
However on Amazon Linux 2 only 6 elements are provided, this change compensates for this and is more flexible in retrieving other elements if an OS insufficiently provides CPE_NAME.
What issues does this PR fix or reference?
An ERROR was output stating the CPE_NAME was broken, for example:
CPE_NAME is correctly parsed on Amazon Linux 2
No, tested by hand
Commits signed with GPG?
Please review Salt's Contributing Guide for best practices.
See GitHub's page on GPG signing for more information about signing commits with GPG.
I am seeing this issue on ami-00b882ac5193044e4 on a clean setup/install from bootstrap:
sh-4.2$ sudo salt-call --version