Skip to content

Commit

Permalink
Leverage versioncmp().
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhattan committed Oct 26, 2015
1 parent f1b2bdc commit a0c9958
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
$service_program = '/usr/sbin/service'
case $::operatingsystem {
'Debian': {
if $::lsbmajdistrelease < 8 {
if versioncmp($::lsbmajdistrelease, '8') < 0 {
$init_system = 'sysv'
}
else {
Expand All @@ -48,7 +48,7 @@
$eventqueue = false

$service_program = '/sbin/service'
if $::lsbmajdistrelease < 7 {
if versioncmp($::lsbmajdistrelease, '7') < 0 {
$init_system = 'sysv'
}
else {
Expand Down

0 comments on commit a0c9958

Please sign in to comment.