Fixed enabled files for Liberty release
We used to have only one enabled file and tricked horizon in loading all others enabled files as if it was a dashboard. This trick is not working anymore. Closes-Bug: #1507087 Change-Id: I7b075ab66d623e28efb174191ad0ebd359ec06a2
This commit is contained in:
parent
53b4cc13f8
commit
c715a1b3c1
@ -1,29 +0,0 @@
|
|||||||
# Copyright 2015 Objectif Libre
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
# not use this file except in compliance with the License. You may obtain
|
|
||||||
# a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
||||||
# License for the specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
from openstack_dashboard.utils import settings
|
|
||||||
|
|
||||||
import cloudkittydashboard.enabled
|
|
||||||
|
|
||||||
|
|
||||||
ADD_INSTALLED_APPS = ['cloudkittydashboard']
|
|
||||||
UPDATE_HORIZON_CONFIG = {}
|
|
||||||
DASHBOARD = ''
|
|
||||||
|
|
||||||
|
|
||||||
settings.update_dashboards(
|
|
||||||
(cloudkittydashboard.enabled,),
|
|
||||||
UPDATE_HORIZON_CONFIG,
|
|
||||||
ADD_INSTALLED_APPS
|
|
||||||
)
|
|
@ -12,6 +12,8 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
ADD_INSTALLED_APPS = ['cloudkittydashboard']
|
||||||
|
|
||||||
PANEL_GROUP = 'rating'
|
PANEL_GROUP = 'rating'
|
||||||
PANEL_DASHBOARD = 'admin'
|
PANEL_DASHBOARD = 'admin'
|
||||||
PANEL = 'hashmap'
|
PANEL = 'hashmap'
|
||||||
|
@ -36,16 +36,18 @@ rm -rf {test-,}requirements.txt tools/{pip,test}-requires
|
|||||||
%install
|
%install
|
||||||
%{__python} setup.py install -O1 --skip-build --root=%{buildroot}
|
%{__python} setup.py install -O1 --skip-build --root=%{buildroot}
|
||||||
mkdir -p %{buildroot}/usr/share/openstack-dashboard/openstack_dashboard/enabled/
|
mkdir -p %{buildroot}/usr/share/openstack-dashboard/openstack_dashboard/enabled/
|
||||||
ln -s %{python_sitelib}/cloudkittydashboard/_90_enable_ck.py \
|
ln -s %{python_sitelib}/cloudkittydashboard/enabled/_[0-9]*.py \
|
||||||
%{buildroot}/usr/share/openstack-dashboard/openstack_dashboard/enabled/_90_enable_ck.py
|
%{buildroot}/usr/share/openstack-dashboard/openstack_dashboard/enabled/
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
/usr/share/openstack-dashboard/openstack_dashboard/enabled/_90_enable_ck.py
|
/usr/share/openstack-dashboard/openstack_dashboard/enabled/*
|
||||||
|
|
||||||
%description
|
%description
|
||||||
OpenStack Rating-as-a-Service - Dashboard
|
OpenStack Rating-as-a-Service - Dashboard
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Oct 19 2015 Stéphane Albert <stephane.albert@objectif-libre.com> - @VERSION@
|
||||||
|
- Updated with new enabled files
|
||||||
* Wed May 20 2015 Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> - @VERSION@
|
* Wed May 20 2015 Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> - @VERSION@
|
||||||
- Initial release
|
- Initial release
|
||||||
|
Loading…
Reference in New Issue
Block a user