File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 377377
378378 if ($service_provider == ' systemd' ) {
379379 # systemd v230 adds new StartLimitIntervalSec, StartLimitBurst
380- if ($::osfamily == ' RedHat' and versioncmp($::operatingsystemrelease , ' 8' ) < 0) {
380+ if ($facts [ ' os ' ][ ' family ' ] == ' RedHat' and versioncmp($facts [ ' os ' ][ ' release ' ][ ' major ' ] , ' 8' ) < 0) {
381381 $have_systemd_v230 = false
382- } elsif ($::operatingsystem == ' Ubuntu' and versioncmp($::operatingsystemrelease , ' 18.04' ) < 0) {
382+ } elsif ($facts [ ' os ' ][ ' name ' ] == ' Ubuntu' and versioncmp($facts [ ' os ' ][ ' release ' ][ ' major ' ] , ' 18.04' ) < 0) {
383383 $have_systemd_v230 = false
384- } elsif ($::operatingsystem == ' Debian' and versioncmp($::operatingsystemrelease , ' 9' ) < 0) {
384+ } elsif ($facts [ ' os ' ][ ' name ' ] == ' Debian' and versioncmp($facts [ ' os ' ][ ' release ' ][ ' major ' ] , ' 9' ) < 0) {
385385 $have_systemd_v230 = false
386386 } else {
387387 $have_systemd_v230 = true
You can’t perform that action at this time.
0 commit comments