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

Avoid global mutation. #852

Merged
merged 3 commits into from
Jul 29, 2016
Merged

Avoid global mutation. #852

merged 3 commits into from
Jul 29, 2016

Conversation

coderanger
Copy link
Contributor

Closes #851.

@@ -82,6 +83,10 @@ class Plugin
include Ohai::Mixin::Command
include Ohai::Mixin::SecondsToHuman

# Pending next major release of Ohai.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removal pending? The comment is a bit vague. Also when we leave comments in code that say next major version no action is ever taken. Pick the version where we plan to deprecate it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably decide first if we want it to be removed at all or if FileHelper should just stay as part of the Plugin base API. That would seem fine too :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd be fine if we kept this part of the Plugin base API. It's small and useful for writing plugins.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Roger, updating PR :)

… small, doesn't stomp on much, and is helpful in a large number of plugins.
@coderanger
Copy link
Contributor Author

The DmiDecode change might break something but it seems much less likely someone was accidentally using those methods :) Will see what the tests say.

@tas50
Copy link
Contributor

tas50 commented Jul 29, 2016

I highly doubt anyone is using the DMI helper and it's the right thing to do. Lets just fix that.

@tas50
Copy link
Contributor

tas50 commented Jul 29, 2016

+1 Thanks for noticing this @coderanger

@coderanger coderanger merged commit 30367a3 into chef:master Jul 29, 2016
@tas50 tas50 added the Bug label Aug 4, 2016
@thommay thommay added Type: Bug Does not work as expected. and removed Bug labels Jan 24, 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: Bug Does not work as expected.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants