File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 54
54
$mod_libs = $apache::mod_libs
55
55
if $lib {
56
56
$_lib = $lib
57
- } elsif has_key( $mod_libs , $ mod) { # 2.6 compatibility hack
57
+ } elsif $ mod in $mod_libs {
58
58
$_lib = $mod_libs [$mod ]
59
59
} else {
60
60
$_lib = " mod_${mod} .so"
83
83
$mod_packages = $apache::mod_packages
84
84
if $package {
85
85
$_package = $package
86
- } elsif has_key( $mod_packages , $ mod) { # 2.6 compatibility hack
86
+ } elsif $ mod in $mod_packages {
87
87
if ($apache::apache_version == ' 2.4' and $::operatingsystem =~ /^[Aa]mazon$/ and $::operatingsystemmajrelease != ' 2' ) {
88
88
# On amazon linux we need to prefix our package name with mod24 instead of mod to support apache 2.4
89
89
$_package = regsubst($mod_packages [$mod ],' ^(mod_)?(.*)' ,' mod24_\2 ' )
Original file line number Diff line number Diff line change 301
301
302
302
# Ensure that we are not using variables with the typo fixed by MODULES-6225
303
303
# anymore:
304
- if !empty($workers_file_content ) and has_key( $workers_file_content , ' worker_mantain' ) {
304
+ if !empty($workers_file_content ) and ( ' worker_mantain' in $workers_file_content ) {
305
305
fail(' Please replace $workers_file_content[\' worker_mantain\' ] by $workers_file_content[\' worker_maintain\' ]. See MODULES-6225 for details.' )
306
306
}
307
307
Original file line number Diff line number Diff line change 53
53
$mod_packages = $apache::mod_packages
54
54
if $package_name {
55
55
$_package_name = $package_name
56
- } elsif has_key( $mod_packages , $ mod) { # 2.6 compatibility hack
56
+ } elsif $ mod in $mod_packages {
57
57
$_package_name = $mod_packages [$mod ]
58
- } elsif has_key( $mod_packages , ' phpXXX' ) { # 2.6 compatibility hack
58
+ } elsif ' phpXXX' in $mod_packages {
59
59
$_package_name = regsubst($mod_packages [' phpXXX' ], ' XXX' , $php_version )
60
60
} else {
61
61
$_package_name = undef
You can’t perform that action at this time.
0 commit comments