summaryrefslogtreecommitdiff
path: root/playbooks/dashboard
diff options
context:
space:
mode:
authorTristan Cacqueray <tdecacqu@redhat.com>2018-10-10 03:04:13 +0000
committerTristan Cacqueray <tdecacqu@redhat.com>2018-10-10 03:05:39 +0000
commit8b0a30ce3d4aa57990ef1463cf9079ed4da1662d (patch)
treea3a34e9c59c593bfa3bbfec1f60f9a8204447109 /playbooks/dashboard
parentda0baca57c8d56343a421f939c713ba01454d7a3 (diff)
downloadzuul-8b0a30ce3d4aa57990ef1463cf9079ed4da1662d.tar.gz
web: fix zuul-build-dashboard homepage setting
A previous change broke the homepage update for zuul-build-dashboard ci results. Change-Id: Ie2344070425a2d0edab9c3edb15b0e2b577a02ce
Diffstat (limited to 'playbooks/dashboard')
-rw-r--r--playbooks/dashboard/run.yaml4
1 files changed, 2 insertions, 2 deletions
diff --git a/playbooks/dashboard/run.yaml b/playbooks/dashboard/run.yaml
index 056739db0..e57282047 100644
--- a/playbooks/dashboard/run.yaml
+++ b/playbooks/dashboard/run.yaml
@@ -3,8 +3,8 @@
- name: Update homepage for sub directory deployment
replace:
path: '{{ zuul.project.src_dir }}/web/package.json'
- regexp: '"homepage": "/"'
- replace: '"homepage": "./"'
+ regexp: '^{$'
+ replace: '{\n "homepage": "./",'
# NOTE: using "./" is not enough to support html5 links, even with
# rewrite rules for unknown files, accessing 'job/devstack' will make
# the dashboard load static files from 'job/static/...'