From 7b88dcf977b3a8ed57c7c0d9f378e30b47d2578b Mon Sep 17 00:00:00 2001 From: Kirill Zaitsev Date: Mon, 12 Sep 2016 22:52:51 +0300 Subject: [PATCH] [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 Change-Id: I53cd9ee0a64aa6771597144317d126b88fcde989 --- devstack/plugin.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 1aa26986f..3b7804ad6 100755 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -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 }