Browse Source

Update numbering of dashboard enable files

Recently, the Horizon Dashboard project launched a new approach
for loading dashboard panels at startup, and along with that, a
new 4 digit numbering scheme for the files that enable that to
happen.

The change is happening in the designate-dashboard project. This
patch updates the file names that get sym-linked into Horizon.

Change-Id: Ifc9ee0a2afbd6b826993ff03c1d23aacabf3144e
Chris Johnson 3 years ago
parent
commit
1b7dd055ce
1 changed files with 12 additions and 2 deletions
  1. 12
    2
      devstack/plugin.sh

+ 12
- 2
devstack/plugin.sh View File

@@ -250,8 +250,18 @@ function install_designateclient {
250 250
 function install_designatedashboard {
251 251
     git_clone $DESIGNATEDASHBOARD_REPO $DESIGNATEDASHBOARD_DIR $DESIGNATEDASHBOARD_BRANCH
252 252
     setup_develop $DESIGNATEDASHBOARD_DIR
253
-    ln -fs $DESIGNATEDASHBOARD_DIR/designatedashboard/enabled/_70_dns_add_group.py $HORIZON_DIR/openstack_dashboard/local/enabled/70_dns_add_group.py
254
-    ln -fs $DESIGNATEDASHBOARD_DIR/designatedashboard/enabled/_71_dns_project.py $HORIZON_DIR/openstack_dashboard/local/enabled/71_dns_project.py
253
+
254
+    # Just in case the old files are still here during trasition
255
+    if [ -f "$DESIGNATEDASHBOARD_DIR/designatedashboard/enabled/_70_dns_add_group.py" ]; then
256
+      ln -fs $DESIGNATEDASHBOARD_DIR/designatedashboard/enabled/_70_dns_add_group.py $HORIZON_DIR/openstack_dashboard/local/enabled/_1710_project_dns_panel_group.py
257
+    else
258
+      ln -fs $DESIGNATEDASHBOARD_DIR/designatedashboard/enabled/_1710_project_dns_panel_group.py $HORIZON_DIR/openstack_dashboard/local/enabled/_1710_project_dns_panel_group.py
259
+    fi
260
+    if [ -f "$DESIGNATEDASHBOARD_DIR/designatedashboard/enabled/_71_dns_project.py" ]; then
261
+      ln -fs $DESIGNATEDASHBOARD_DIR/designatedashboard/enabled/_71_dns_project.py $HORIZON_DIR/openstack_dashboard/local/enabled/_1720_project_dns_panel.py
262
+    else
263
+      ln -fs $DESIGNATEDASHBOARD_DIR/designatedashboard/enabled/_1720_project_dns_panel.py $HORIZON_DIR/openstack_dashboard/local/enabled/_1720_project_dns_panel.py
264
+    fi
255 265
 }
256 266
 
257 267
 # start_designate - Start running processes, including screen

Loading…
Cancel
Save