
Recently, the data processing service was renamed to "data-processing" rather than "data_processing". Each panel needs to be updated so that it will show up when the data-processing service is enabled. Also updated the underlying test data to reflect the update. Change-Id: I38d7350215cbe5c5f406d75d6be7c9057957bc69 Closes-Bug: #1429987
28 lines
883 B
Python
28 lines
883 B
Python
# 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 django.utils.translation import ugettext_lazy as _
|
|
|
|
import horizon
|
|
|
|
from openstack_dashboard.dashboards.project import dashboard
|
|
|
|
|
|
class ClustersPanel(horizon.Panel):
|
|
name = _("Clusters")
|
|
slug = 'data_processing.clusters'
|
|
permissions = ('openstack.services.data-processing',)
|
|
|
|
|
|
dashboard.Project.register(ClustersPanel)
|