Skip to content

Commit

Permalink
use versioncmp
Browse files Browse the repository at this point in the history
  • Loading branch information
jcharaoui committed Mar 30, 2023
1 parent 2ea4f65 commit 112748d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@
$server_version = undef

if $aio_package or
($facts['os']['name'] == 'Debian' and Integer($facts['os']['release']['major']) >= 12) {
($facts['os']['name'] == 'Debian' and versioncmp($facts['os']['release']['major'], '12') >= 0 {
$client_package = ['puppet-agent']
} elsif ($facts['os']['family'] =~ /(FreeBSD|DragonFly)/) {
$client_package = ["puppet${puppet_major}"]
Expand Down

0 comments on commit 112748d

Please sign in to comment.