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

(MODULES-4678) Explicitly close config on read #76

Conversation

ferventcoder
Copy link

Previously, any providers managing Chocolatey configuration are unable
to be used with 0.10.4+ and actually cause the process to
fail.

Chocolatey 0.10.4+ has changed the way it updates and accesses the
config. The new method has exposed an error in an unclosed file handle
when reading the configuration for chocolateysource,
chocolateyfeature, and chocolateyconfig. Switch to File.read as
it will automatically close the file after reading out the contents.

Previously, any providers managing Chocolatey configuration are unable
to be used with 0.10.4+ and actually cause the process to
fail.

Chocolatey 0.10.4+ has changed the way it updates and accesses the
config. The new method has exposed an error in an unclosed file handle
when reading the configuration for `chocolateysource`,
`chocolateyfeature`, and `chocolateyconfig`. Switch to `File.read` as
it will automatically close the file after reading out the contents.
@hunner hunner merged commit 66b46ac into puppetlabs:master May 4, 2017
@ferventcoder ferventcoder deleted the tickets/master/MODULES-4678_fix_config branch May 4, 2017 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants