From 0f634273b63d3d0d21ce6c2e08620fafc6ce2dbc Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 5 Oct 2020 09:02:54 +0900 Subject: [PATCH] Fix inconsistent parameter name in aodh::params Change-Id: I6000bc228d26f5216d2b4950f440db74b5b78c6c --- manifests/params.pp | 4 ++-- manifests/wsgi/apache.pp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/manifests/params.pp b/manifests/params.pp index f8158cbf..81aa5c46 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -21,7 +21,7 @@ class aodh::params { $expirer_service_name = 'openstack-aodh-expirer' $listener_package_name = 'openstack-aodh-listener' $listener_service_name = 'openstack-aodh-listener' - $aodh_wsgi_script_path = '/var/www/cgi-bin/aodh' + $aodh_wsgi_script_dir = '/var/www/cgi-bin/aodh' $aodh_wsgi_script_source = '/usr/bin/aodh-api' $redis_package_name = "python${pyvers}-redis" } @@ -37,7 +37,7 @@ class aodh::params { $expirer_service_name = 'aodh-expirer' $listener_package_name = 'aodh-listener' $listener_service_name = 'aodh-listener' - $aodh_wsgi_script_path = '/usr/lib/cgi-bin/aodh' + $aodh_wsgi_script_dir = '/usr/lib/cgi-bin/aodh' $aodh_wsgi_script_source = '/usr/share/aodh/app.wsgi' $redis_package_name = "python${pyvers}-redis" } diff --git a/manifests/wsgi/apache.pp b/manifests/wsgi/apache.pp index d15223c4..56f9bea5 100644 --- a/manifests/wsgi/apache.pp +++ b/manifests/wsgi/apache.pp @@ -135,7 +135,7 @@ class aodh::wsgi::apache ( $access_log_format = false, $error_log_file = undef, $custom_wsgi_process_options = {}, - $wsgi_script_dir = $::aodh::params::aodh_wsgi_script_path, + $wsgi_script_dir = $::aodh::params::aodh_wsgi_script_dir, $wsgi_script_source = $::aodh::params::aodh_wsgi_script_source, $vhost_custom_fragment = undef, ) inherits aodh::params { @@ -150,9 +150,9 @@ class aodh::wsgi::apache ( # 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_path instead') +Use $::aodh::params::aodh_wsgi_script_dir instead') } - $wsgi_script_dir_real = pick($wsgi_script_dir, $::aodh::params::aodh_wsgi_script_path) + $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. \