Drop unused implementation to expect "undef"

In current puppet, overriding a parameter by "undef" results in
just its default value. There is no chance that undef is honored unless
that is the default.

Change-Id: Icf44e6be4317dc6de973368c4f1aba3f88ea161f
This commit is contained in:
Takashi Kajinami 2022-02-03 12:17:18 +09:00
parent 0eb8b285cf
commit 2865eb0be1
2 changed files with 2 additions and 25 deletions

View File

@ -147,19 +147,6 @@ class aodh::wsgi::apache (
include aodh::deps
# TODO(tkajinam): Remove the following compat codes in W-cycle.
if $wsgi_script_dir == undef {
warning('Usage of undef for the wsgi_script_dir paramaeter has been deprecated. \
Use $::aodh::params::aodh_wsgi_script_dir instead')
}
$wsgi_script_dir_real = pick($wsgi_script_dir, $::aodh::params::aodh_wsgi_script_dir)
if $wsgi_script_source == undef {
warning('Usage of undef for the wsgi_script_source paramaeter has been deprecated. \
Use $::aodh::params::aodh_wsgi_script_source instead')
}
$wsgi_script_source_real = pick($wsgi_script_source, $::aodh::params::aodh_wsgi_script_source)
# NOTE(aschultz): needed because the packaging may introduce some apache
# configuration files that apache may remove. See LP#1657847
Anchor['aodh::install::end'] -> Class['apache']
@ -186,9 +173,9 @@ Use $::aodh::params::aodh_wsgi_script_source instead')
wsgi_daemon_process => 'aodh',
wsgi_process_display_name => $wsgi_process_display_name,
wsgi_process_group => 'aodh',
wsgi_script_dir => $wsgi_script_dir_real,
wsgi_script_dir => $wsgi_script_dir,
wsgi_script_file => 'app',
wsgi_script_source => $wsgi_script_source_real,
wsgi_script_source => $wsgi_script_source,
custom_wsgi_process_options => $custom_wsgi_process_options,
access_log_file => $access_log_file,
access_log_format => $access_log_format,

View File

@ -1,10 +0,0 @@
---
deprecations:
- |
Usage of ``undef`` for the following parameters has been deprecated and it
won't be replaced by the default value automatically in a future release.
Set the exact value or use the parameters defined in the ``aodh::param``
class.
- ``wsgi::apache::aodh_wsgi_script_path``
- ``wsgi::apache::aodh_wsgi_script_source``