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

[wmi] set provider architecture when necessary #2812

Merged
merged 2 commits into from Sep 6, 2016
Merged

Conversation

yannmh
Copy link
Member

@yannmh yannmh commented Sep 6, 2016

[wmi] set provider architecture when necessary

On Windows 2008, setting a WMI provider would cause an exception.
To prevent this from unecessarily happening, only proceed when the
provided value is not set to the default one.

[debug] improve run_check compatibility

Datadog Agent checks do not necessarily inherit directly from the
AgentCheck class. When it is the case, the run_check DEBUG method
would fail loading the check.
This happens with WMI checks for instance.

Allow the run_check DEBUG method to load any agent check that inherits
from the AgentCheck.

On Windows 2008, setting a WMI provider would cause an exception.
To prevent this from unecessarily happening, only proceed when the
provided value is not set to the default one.
Datadog Agent checks do not necessarily inherit directly from the
`AgentCheck` class. When it is the case, the `run_check` DEBUG method
would fail loading the check.
This happens with WMI checks for instance.

Allow the `run_check` DEBUG method to load any agent check that inherits
from the `AgentCheck`.
@yannmh yannmh added this to the 5.9.0 milestone Sep 6, 2016
@yannmh yannmh merged commit ce81955 into master Sep 6, 2016
@yannmh yannmh deleted the yann/wmi-provider-fix branch September 6, 2016 17:38
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.

None yet

1 participant