From 4a85d5d6e040b08e085f9f5752de90a2346df6d1 Mon Sep 17 00:00:00 2001 From: Chris Dent Date: Tue, 5 Dec 2017 23:46:58 +0000 Subject: [PATCH] Move remove_uwsgi_config to cleanup_placement It had been in stop_placement, but we don't want it there: the old side of grenade needs to call that but should not remove the uwsgi configuration when doing so. It is configuration, after all. Change-Id: Iee763adf7895145d97b184924896db3f1f48a015 Partial-Bug: #1736385 --- lib/placement | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/placement b/lib/placement index aef9b7454e..eda345dc50 100644 --- a/lib/placement +++ b/lib/placement @@ -71,6 +71,7 @@ function is_placement_enabled { function cleanup_placement { sudo rm -f $(apache_site_config_for nova-placement-api) sudo rm -f $(apache_site_config_for placement-api) + remove_uwsgi_config "$PLACEMENT_UWSGI_CONF" "$PLACEMENT_UWSGI" } # _config_placement_apache_wsgi() - Set WSGI config files @@ -185,7 +186,6 @@ function start_placement { function stop_placement { if [[ "$WSGI_MODE" == "uwsgi" ]]; then stop_process "placement-api" - remove_uwsgi_config "$PLACEMENT_UWSGI_CONF" "$PLACEMENT_UWSGI" else disable_apache_site placement-api restart_apache_server