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

Detect incorrect usage of node['os'] #842

Open
tas50 opened this issue Apr 14, 2021 · 0 comments
Open

Detect incorrect usage of node['os'] #842

tas50 opened this issue Apr 14, 2021 · 0 comments
Labels
Status: Untriaged An issue that has yet to be triaged. Type: Bug Does not work as expected.

Comments

@tas50
Copy link
Contributor

tas50 commented Apr 14, 2021

node['os'] may seem like the appropriate attribute to reach for when adding platforms specific logic to a cookbook, but os is actually very high level in ohai. Usually, a person actually wants platform_family and we should detect incorrect OS values being checked. This is similar to Chef/Style/UnnecessaryOSCheck, but it checks for incorrect usage vs. unnecessary usage.

@tas50 tas50 added Type: Bug Does not work as expected. Status: Untriaged An issue that has yet to be triaged. labels Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Untriaged An issue that has yet to be triaged. Type: Bug Does not work as expected.
Projects
None yet
Development

No branches or pull requests

1 participant