[devstack] Remove all the dashboard config files
This change accompanies I7aee5d26185cc0a7bb54f2b39b85d580daa400ae and makes devstack plugin correctly cleanup all the config files installed by new murano-dashboard. Also cleans-up any occasional .pyc/.pyo files. Depends-On: I7aee5d26185cc0a7bb54f2b39b85d580daa400ae Targets bp: catalog-dashboard-reorg Co-Authored-By: zhurong <aaronzhu1121@gmail.com> Change-Id: I53cd9ee0a64aa6771597144317d126b88fcde989
This commit is contained in:
parent
2b253671bd
commit
7b88dcf977
@ -570,9 +570,12 @@ function install_murano_dashboard() {
|
||||
function cleanup_murano_dashboard() {
|
||||
echo_summary "Cleanup Murano Dashboard"
|
||||
|
||||
rm $HORIZON_DIR/openstack_dashboard/local/enabled/_50_murano.py
|
||||
# remove all the pannels we've installed, also any pyc/pyo files
|
||||
for i in $(find $MURANO_DASHBOARD_DIR/muranodashboard/local/enabled -iname '_[0-9]*.py' -printf '%f\n'); do
|
||||
rm -rf $HORIZON_DIR/openstack_dashboard/local/enabled/${i%.*}.*
|
||||
done
|
||||
|
||||
rm $HORIZON_DIR/openstack_dashboard/local/local_settings.d/_50_murano.py
|
||||
rm $HORIZON_DIR/openstack_dashboard/local/local_settings.d/_50_murano.*
|
||||
|
||||
rm $HORIZON_DIR/openstack_dashboard/conf/murano_policy.json
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user