From 3027c20545688a39c1db84a83e0e8252d238603c Mon Sep 17 00:00:00 2001 From: Chris Dent Date: Tue, 20 Nov 2018 22:18:26 +0000 Subject: [PATCH] Address nits on lib/placement for extracted placement Earlier review [1] suggested some cleanups which have been done here: * Removing a redundant call from cleanup_placement * Fixing a typo in a comment [1] https://review.openstack.org/#/c/600162/15/lib/placement Change-Id: I8abd2f02b123c6c1937c026ff13eb4e600de3202 --- lib/placement | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/placement b/lib/placement index 409ebecc4a..da69e39264 100644 --- a/lib/placement +++ b/lib/placement @@ -62,7 +62,6 @@ function is_placement_enabled { # cleanup_placement() - Remove residual data files, anything left over from previous # runs that a clean run would need to clean up 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" sudo rm -f $PLACEMENT_AUTH_CACHE_DIR/* @@ -107,7 +106,7 @@ function configure_placement_nova_compute { iniset $conf placement auth_strategy $PLACEMENT_AUTH_STRATEGY } -# create_placement_conf() - Write confg +# create_placement_conf() - Write config function create_placement_conf { rm -f $PLACEMENT_CONF iniset $PLACEMENT_CONF placement_database connection `database_connection_url placement`