We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
5.6.2
Any OS
recipe code
if node["platform_family"] == "debian" end
Execute bundle exec cookstyle -D --auto-correct This result is no problem.
bundle exec cookstyle -D --auto-correct
if platform_family?("debian") end
But, if multiple node["platform_family"] are used in one file
node["platform_family"]
if node["platform_family"] == "debian" end if node["platform_family"] == "rhel" end
Both will be the last value.
if platform_family?("rhel") end if platform_family?("rhel") end
if platform_family?("debian") end if platform_family?("rhel") end
The text was updated successfully, but these errors were encountered:
Well that's not right. I'll see what I can do.
Sorry, something went wrong.
Thanks for the report @thr3a. I've fixed this and I'll get a release out hopefully tomorrow
@tas50 Thank you!!
Successfully merging a pull request may close this issue.
Version:
5.6.2
Environment:
Any OS
Scenario:
recipe code
Execute
bundle exec cookstyle -D --auto-correct
This result is no problem.But, if multiple
node["platform_family"]
are used in one fileBoth will be the last value.
Expected Result:
Actual Result:
The text was updated successfully, but these errors were encountered: