Skip to content

Add support for java 11, the default in debian buster 10#386

Merged
sheenaajay merged 2 commits intopuppetlabs:masterfrom
vrtdev:feature/java11
Sep 12, 2019
Merged

Add support for java 11, the default in debian buster 10#386
sheenaajay merged 2 commits intopuppetlabs:masterfrom
vrtdev:feature/java11

Conversation

@jhooyberghs
Copy link
Copy Markdown
Contributor

When trying to implement the current master branch in our setup, I noticed the facts don't work for debian buster since the output format of the default openjdk 11 command "java -version" changed. I added a condition to check the format, and see if it starts with 1 (like in 1.8.0_144) or the newer format with > 1 (like 11.0.4).

This adds the java version facts resolving for debian buster and should not break it for existing implementations.

@sheenaajay
Copy link
Copy Markdown
Contributor

Thank you @jhooyberghs for submitting the PR.

@sheenaajay
Copy link
Copy Markdown
Contributor

Screen Shot 2019-09-12 at 11 21 51

@sheenaajay sheenaajay merged commit 074162d into puppetlabs:master Sep 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants