Skip to content

Conversation

@caseywilliams
Copy link
Contributor

Previously, the DMI data source collected data in its constructor, so
even when DMI wouldn't have been used anyway, it would still try to
collect its data from dmidecode and /sys on instantiation. This commit
changes the DMI source so that it only collects data when one of data
values is accessed.

@caseywilliams caseywilliams requested a review from branan July 28, 2017 22:41
@coveralls
Copy link

Coverage Status

Coverage decreased (-2.8%) to 94.014% when pulling 588c7f5 on caseywilliams:dmi-refactor into 9c77d1b on puppetlabs:master.

Previously, the DMI data source collected data in its constructor, so
even when DMI wouldn't have been used anyway, it would still try to
collect its data from dmidecode and /sys on instantiation. This commit
changes the DMI source so that it only collects data when one of data
values is accessed.
@coveralls
Copy link

Coverage Status

Coverage decreased (-2.8%) to 94.014% when pulling bc550a4 on caseywilliams:dmi-refactor into 9c77d1b on puppetlabs:master.

@caseywilliams
Copy link
Contributor Author

Hmm, I bet I could get back some of the coverage here by including a new method that just returns the contents the dmidecode output. I'll update soon.

@caseywilliams
Copy link
Contributor Author

I had to do a little more work on DMI to get WMI working under Windows, so I'm closing this PR in favor of including this and the new changes in a separate one.

@caseywilliams caseywilliams deleted the dmi-refactor branch November 7, 2017 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants