Skip to content

Make the classpath seperator in jmxfetch adjust to the os #3729

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

Merged
merged 1 commit into from
May 14, 2018

Conversation

jvanlieshout
Copy link
Contributor

TL;DR Linux uses a colon (:) and Windows a semicolon (;). os.pathsep knows
this.

When using the jmx agent on Windows in combination with a custom_jar_paths and or tools_jar_path the agent will fail because the classpath seperator is a colon. On Windows a path seperator has to be a semicolon. The python function os.pathsep return the correct seperator.

Linux uses a colon (:) and Windows a semicolon (;). os.pathsep knows
this.
Copy link
Member

@olivielpeau olivielpeau left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Thanks @jvanlieshout! Merging

@olivielpeau olivielpeau added this to the 5.25.0 milestone May 14, 2018
@olivielpeau olivielpeau merged commit 8da6534 into DataDog:master May 14, 2018
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.

2 participants