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
| ... | ... |
@@ -62,7 +62,6 @@ function is_placement_enabled {
|
| 62 | 62 |
# cleanup_placement() - Remove residual data files, anything left over from previous |
| 63 | 63 |
# runs that a clean run would need to clean up |
| 64 | 64 |
function cleanup_placement {
|
| 65 |
- sudo rm -f $(apache_site_config_for nova-placement-api) |
|
| 66 | 65 |
sudo rm -f $(apache_site_config_for placement-api) |
| 67 | 66 |
remove_uwsgi_config "$PLACEMENT_UWSGI_CONF" "$PLACEMENT_UWSGI" |
| 68 | 67 |
sudo rm -f $PLACEMENT_AUTH_CACHE_DIR/* |
| ... | ... |
@@ -107,7 +106,7 @@ function configure_placement_nova_compute {
|
| 107 | 107 |
iniset $conf placement auth_strategy $PLACEMENT_AUTH_STRATEGY |
| 108 | 108 |
} |
| 109 | 109 |
|
| 110 |
-# create_placement_conf() - Write confg |
|
| 110 |
+# create_placement_conf() - Write config |
|
| 111 | 111 |
function create_placement_conf {
|
| 112 | 112 |
rm -f $PLACEMENT_CONF |
| 113 | 113 |
iniset $PLACEMENT_CONF placement_database connection `database_connection_url placement` |