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 5454 $mod_libs = $apache::mod_libs
5555 if $lib {
5656 $_lib = $lib
57- } elsif has_key( $mod_libs , $mod ) { # 2.6 compatibility hack
57+ } elsif $mod in $mod_libs { # 2.6 compatibility hack
5858 $_lib = $mod_libs [$mod ]
5959 } else {
6060 $_lib = " mod_${mod} .so"
8383 $mod_packages = $apache::mod_packages
8484 if $package {
8585 $_package = $package
86- } elsif has_key( $mod_packages , $mod ) { # 2.6 compatibility hack
86+ } elsif $mod in $mod_packages { # 2.6 compatibility hack
8787 $_package = $mod_packages [$mod ]
8888 } else {
8989 $_package = undef
Original file line number Diff line number Diff line change 329329
330330 # Ensure that we are not using variables with the typo fixed by MODULES-6225
331331 # anymore:
332- if !empty($workers_file_content ) and has_key( $workers_file_content , ' worker_mantain' ) {
332+ if !empty($workers_file_content ) and ' worker_mantain' in $workers_file_content {
333333 fail(' Please replace $workers_file_content[\' worker_mantain\' ] by $workers_file_content[\' worker_maintain\' ]. See MODULES-6225 for details.' )
334334 }
335335
Original file line number Diff line number Diff line change 8181 $mod_packages = $apache::mod_packages
8282 if $package_name {
8383 $_package_name = $package_name
84- } elsif has_key( $mod_packages , $mod ) { # 2.6 compatibility hack
84+ } elsif $mod in $mod_packages { # 2.6 compatibility hack
8585 $_package_name = $mod_packages [$mod ]
86- } elsif has_key( $mod_packages , ' phpXXX' ) { # 2.6 compatibility hack
86+ } elsif ' phpXXX' in $mod_packages { # 2.6 compatibility hack
8787 $_package_name = regsubst($mod_packages [' phpXXX' ], ' XXX' , $php_version )
8888 } else {
8989 $_package_name = undef
You can’t perform that action at this time.
0 commit comments