diff --git a/README.rst b/README.rst index 89acb10..9d0f5f2 100644 --- a/README.rst +++ b/README.rst @@ -37,7 +37,7 @@ Or if you're planning to run Horizon server in a virtual environment (see below) and then - $ cp -b /_50_mistral.py.example /openstack_dashboard/local/enabled/_50_mistral.py + $ cp -b /mistraldashboard/enabled/_50_mistral.py /openstack_dashboard/local/enabled/_50_mistral.py Since Mistral only supports Identity v3, you must ensure that the dashboard points the proper OPENSTACK_KEYSTONE_URL in /openstack_dashboard/local/local_settings.py file:: diff --git a/_50_mistral.py.example b/_50_mistral.py.example deleted file mode 100644 index 2eba392..0000000 --- a/_50_mistral.py.example +++ /dev/null @@ -1,11 +0,0 @@ -from mistraldashboard import exceptions - -DASHBOARD = 'mistral' -ADD_INSTALLED_APPS = ['mistraldashboard'] -DEFAULT = True - -ADD_EXCEPTIONS = { - 'recoverable': exceptions.RECOVERABLE, - 'not_found': exceptions.NOT_FOUND, - 'unauthorized': exceptions.UNAUTHORIZED, -} diff --git a/mistraldashboard/enabled/_50_mistral.py b/mistraldashboard/enabled/_50_mistral.py new file mode 100644 index 0000000..07fa6db --- /dev/null +++ b/mistraldashboard/enabled/_50_mistral.py @@ -0,0 +1,25 @@ +# Copyright (c) 2012 OpenStack Foundation. +# +# 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 mistraldashboard import exceptions + +DASHBOARD = 'mistral' +ADD_INSTALLED_APPS = ['mistraldashboard'] +DEFAULT = True + +ADD_EXCEPTIONS = { + 'recoverable': exceptions.RECOVERABLE, + 'not_found': exceptions.NOT_FOUND, + 'unauthorized': exceptions.UNAUTHORIZED, +} diff --git a/mistraldashboard/enabled/__init__.py b/mistraldashboard/enabled/__init__.py new file mode 100644 index 0000000..e69de29