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

[core][windows] restore 'run_check' from 'checks' #1671

Merged
merged 1 commit into from
Jun 10, 2015

Conversation

yannmh
Copy link
Member

@yannmh yannmh commented Jun 9, 2015

PR #1571 introduced a bad regression: 'run_check' method was deleted
beside it is still used on Windows to debug.

@yannmh yannmh self-assigned this Jun 9, 2015
@yannmh yannmh added this to the 5.4.0 milestone Jun 9, 2015


def get_check(name, config_str):
from checks import AgentCheck
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason why you import AgentCheck here instead of the top of the file ?

Copy link
Member Author

Choose a reason for hiding this comment

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

to avoid cyclic dependencies, i.e.

  1. checks/__init__.py imports debug.py to load
  2. debug.py imports checks/__init__.py to load
  3. checks/__init__.py imports debug.py ...

Copy link
Member

Choose a reason for hiding this comment

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

Thanks for the explanation!

PR #1571 introduced a bad regression: 'run_check' method was deleted
beside it is still used on Windows to debug.
@yannmh yannmh force-pushed the yann/win-debug-module branch from face859 to d6950ce Compare June 9, 2015 22:35
yannmh added a commit that referenced this pull request Jun 10, 2015

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
[core][windows] restore 'run_check' from 'checks'
@yannmh yannmh merged commit b37cc39 into master Jun 10, 2015
@yannmh yannmh deleted the yann/win-debug-module branch June 10, 2015 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants