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

Freeze all string values coming out of Ohai. #972

Merged
merged 2 commits into from
Apr 3, 2017

Conversation

coderanger
Copy link
Contributor

This both helps avoid weird mutation bugs and saves a bit of RAM. This does not freeze the hashes or arrays so replacement and whatnot should all work the same. Anyone doing in-place mutation of Ohai strings on purpose is getting what they deserve IMO.

Refs chef/chef#4930 for original discussion.

This both helps avoid weird mutation bugs and saves a bit of RAM.

Refs chef/chef#4930

Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
@thommay
Copy link
Contributor

thommay commented Apr 3, 2017

although travis is very red.

Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
@coderanger coderanger merged commit 9413e9a into chef:master Apr 3, 2017
@tas50 tas50 added the Type: Enhancement Adds new functionality. label Apr 11, 2017
@chef chef locked and limited conversation to collaborators Nov 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Enhancement Adds new functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants