Skip to content

Commit b81fd56

Browse files
authored
Merge pull request #959 from devcfgc/versioncmp_param_compatibility
versioncmp parameter compatibility
2 parents 8386374 + 2ad960d commit b81fd56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

manifests/params.pp

+3-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,9 @@
385385

386386
case $::operatingsystem {
387387
'Ubuntu': {
388-
if versioncmp($::operatingsystemmajrelease, '14.10') > 0 {
388+
# lint:ignore:only_variable_string
389+
if versioncmp("${::operatingsystemmajrelease}", '14.10') > 0 {
390+
# lint:endignore
389391
$server_service_provider = 'systemd'
390392
} else {
391393
$server_service_provider = 'upstart'

0 commit comments

Comments
 (0)