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

Ohai uptime plugin hangs in Windows. #876

Merged
merged 4 commits into from
Sep 14, 2016

Conversation

Aliasgar16
Copy link

@Aliasgar16 Aliasgar16 commented Sep 8, 2016

Ohai uptime plugin hangs in Windows, solution:

  1. Changed WMI class to Win32_OperatingSystem for newer versions of Windows.
  2. Kept the old WMI class Win32_PerfFormattedData_PerfOS_System for older versions of Windows.

WMI class is from where we retrieve the system's uptime for Windows platform.

end

## Windows newer versions category here includes server OS starting from Windows Server 2008 ##
shared_context "WMI class to use to fetch system uptime for newer versions of Windows platform" do
Copy link
Contributor

Choose a reason for hiding this comment

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

can you make the names of the shared context's more brief? that's a lot of words with only one in the middle that is different. It should be easier to tell the difference just looking at them.

@Aliasgar16
Copy link
Author

Done.

@btm
Copy link
Contributor

btm commented Sep 13, 2016

👍

@mwrock , @tas50 review?

@mwrock
Copy link
Member

mwrock commented Sep 14, 2016

👍

@tas50
Copy link
Contributor

tas50 commented Sep 14, 2016

@Aliasgar16 before I merge this can you just toss a sentence or two into the PR description explaining why we'd want to do this?

@Aliasgar16 Aliasgar16 changed the title Changed WMI class from which to retrieve the system uptime for ohai uptime plugin. Ohai uptime plugin hangs in Windows, solution: Sep 14, 2016
@Aliasgar16 Aliasgar16 changed the title Ohai uptime plugin hangs in Windows, solution: Ohai uptime plugin hangs in Windows, so changed WMI class to Win32_OperatingSystem for newer versions of Windows and kept the old WMI class Win32_PerfFormattedData_PerfOS_System for older versions of Windows, WMI class is from where we retrieve the system's uptime for Windows platform. Sep 14, 2016
@Aliasgar16
Copy link
Author

@tas50 I have modified the description of the PR. Let me know your feedback.

@Aliasgar16 Aliasgar16 changed the title Ohai uptime plugin hangs in Windows, so changed WMI class to Win32_OperatingSystem for newer versions of Windows and kept the old WMI class Win32_PerfFormattedData_PerfOS_System for older versions of Windows, WMI class is from where we retrieve the system's uptime for Windows platform. Ohai uptime plugin hangs in Windows. Sep 14, 2016
@tas50 tas50 merged commit be251f7 into chef:master Sep 14, 2016
@tas50
Copy link
Contributor

tas50 commented Sep 14, 2016

Thanks @Aliasgar16

@tas50 tas50 added the Bug label Oct 16, 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.

6 participants