ensure Java8 update number is being handled as a number when doing version comparing
This commit is contained in:
@@ -98,7 +98,7 @@ define java::download(
|
|||||||
# Required for CentOS systems where Java8 update number is >= 171 to ensure
|
# Required for CentOS systems where Java8 update number is >= 171 to ensure
|
||||||
# the package is visible to Puppet. This is only true for installations that
|
# the package is visible to Puppet. This is only true for installations that
|
||||||
# don't use the tar.gz package type.
|
# don't use the tar.gz package type.
|
||||||
if $facts['os']['family'] == 'RedHat' and $2 >= '171' and $package_type != 'tar.gz' {
|
if $facts['os']['family'] == 'RedHat' and Numeric($2) >= 171 and $package_type != 'tar.gz' {
|
||||||
$install_path = "${java_se}1.${1}.0_${2}-amd64"
|
$install_path = "${java_se}1.${1}.0_${2}-amd64"
|
||||||
} else {
|
} else {
|
||||||
$install_path = "${java_se}1.${1}.0_${2}"
|
$install_path = "${java_se}1.${1}.0_${2}"
|
||||||
|
|||||||
Reference in New Issue
Block a user