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

[info] unknown ver if failed module load, custom if custom check. #3488

Merged
merged 2 commits into from
Aug 23, 2017

Conversation

truthbk
Copy link
Member

@truthbk truthbk commented Aug 23, 2017

What does this PR do?

Fixes a couple of issues with the info page:

  • if a module fails to load - unknown version + show exception in info page.
  • if a custom check is used - report custom as the version.

Motivation

DataDog/integrations-core#669

[info] custom is more appropriate.

[info] allow manual override of check version.
@truthbk truthbk added this to the 5.17 milestone Aug 23, 2017
Copy link
Contributor

@masci masci left a comment

Choose a reason for hiding this comment

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

one nit but feel free to ignore. 👍

def set_check_version(self, version=None, manifest=None):
_version = AGENT_VERSION

if version:
Copy link
Contributor

Choose a reason for hiding this comment

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

this could be _version = version or AGENT_VERSION

@truthbk truthbk merged commit f825a54 into master Aug 23, 2017
@truthbk truthbk deleted the jaime/statusfix branch August 23, 2017 13:13
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