Skip to content

Commit

Permalink
Merge pull request #3661 from DataDog/jaime/nochecksd
Browse files Browse the repository at this point in the history
[config] wheel bundling deprecates checksd
  • Loading branch information
truthbk authored Feb 7, 2018
2 parents 9118dea + 98cbe51 commit d4248cd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -990,8 +990,8 @@ def get_checks_places(osname, agentConfig):
try:
checksd_path = get_checksd_path(osname)
except PathNotFound as e:
log.error(e.args[0])
sys.exit(3)
log.info("no bundled checks.d path (checks provided as wheels): %s", e.args[0])
checksd_path = None

# custom checks
places = [lambda name: (os.path.join(agentConfig['additional_checksd'], '%s.py' % name), None)]
Expand All @@ -1010,7 +1010,8 @@ def get_checks_places(osname, agentConfig):
places.append(lambda name: (None, None))

# agent-bundled integrations
places.append(lambda name: (os.path.join(checksd_path, '%s.py' % name), None))
if checksd_path:
places.append(lambda name: (os.path.join(checksd_path, '%s.py' % name), None))
return places


Expand Down

0 comments on commit d4248cd

Please sign in to comment.