Skip to content

Commit

Permalink
Strict variable fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgan Haskel committed Dec 30, 2014
1 parent 070595f commit 4808011
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/version.pp
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@

case $::osfamily {
'RedHat': {
if ($::operatingsystem == 'Fedora' and versioncmp($distrelease, '18') >= 0) or ($::operatingsystem != 'Fedora' and $distrelease >= 7) {
if ($::operatingsystem == 'Fedora' and versioncmp($distrelease, '18') >= 0) or ($::operatingsystem != 'Fedora' and versioncmp($distrelease, '7') >= 0) {
$default = '2.4'
} else {
$default = '2.2'
}
}
'Debian': {
if $::operatingsystem == 'Ubuntu' and $::operatingsystemrelease >= 13.10 {
if $::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemrelease, '13.10') >= 0 {
$default = '2.4'
} elsif $::operatingsystem == 'Debian' and $::operatingsystemrelease == 'jessie/sid' {
$default = '2.4'
Expand Down

0 comments on commit 4808011

Please sign in to comment.