Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions manifests/mod.pp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
$mod_libs = $apache::mod_libs
if $lib {
$_lib = $lib
} elsif has_key($mod_libs, $mod) { # 2.6 compatibility hack
} elsif $mod in $mod_libs { # 2.6 compatibility hack
$_lib = $mod_libs[$mod]
} else {
$_lib = "mod_${mod}.so"
Expand Down Expand Up @@ -83,7 +83,7 @@
$mod_packages = $apache::mod_packages
if $package {
$_package = $package
} elsif has_key($mod_packages, $mod) { # 2.6 compatibility hack
} elsif $mod in $mod_packages { # 2.6 compatibility hack
$_package = $mod_packages[$mod]
} else {
$_package = undef
Expand Down
2 changes: 1 addition & 1 deletion manifests/mod/jk.pp
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@

# Ensure that we are not using variables with the typo fixed by MODULES-6225
# anymore:
if !empty($workers_file_content) and has_key($workers_file_content, 'worker_mantain') {
if !empty($workers_file_content) and 'worker_mantain' in $workers_file_content {
fail('Please replace $workers_file_content[\'worker_mantain\'] by $workers_file_content[\'worker_maintain\']. See MODULES-6225 for details.')
}

Expand Down
4 changes: 2 additions & 2 deletions manifests/mod/php.pp
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@
$mod_packages = $apache::mod_packages
if $package_name {
$_package_name = $package_name
} elsif has_key($mod_packages, $mod) { # 2.6 compatibility hack
} elsif $mod in $mod_packages { # 2.6 compatibility hack
$_package_name = $mod_packages[$mod]
} elsif has_key($mod_packages, 'phpXXX') { # 2.6 compatibility hack
} elsif 'phpXXX' in $mod_packages { # 2.6 compatibility hack
$_package_name = regsubst($mod_packages['phpXXX'], 'XXX', $php_version)
} else {
$_package_name = undef
Expand Down