Skip to content

Commit

Permalink
Add the ability to toggle payload service
Browse files Browse the repository at this point in the history
We now can control if the payload dashboard will be displayed or not.

Closes-Bug: #1256933

Change-Id: I81db01e584ad335f1cb646d0e0d098007ee93917
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
  • Loading branch information
pabelanger authored and sir-sigurd committed Dec 13, 2013
1 parent 2011d22 commit c46e1e9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
7 changes: 5 additions & 2 deletions wildcard/dashboards/project/queues/panel.py
Expand Up @@ -14,7 +14,8 @@
# License for the specific language governing permissions and limitations
# under the License.

from django.utils.translation import ugettext_lazy as _ # noqa
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
import horizon

from wildcard.dashboards.project import dashboard
Expand All @@ -24,4 +25,6 @@ class Queues(horizon.Panel):
name = _("Queues")
slug = 'queues'

dashboard.Project.register(Queues)

if getattr(settings, 'KICKSTAND_PAYLOAD_BACKEND', {}):
dashboard.Project.register(Queues)
4 changes: 4 additions & 0 deletions wildcard/local/local_settings.py.example
Expand Up @@ -35,6 +35,10 @@ OPENSTACK_KEYSTONE_BACKEND = {
'can_edit_role': True
}

#KICKSTAND_PAYLOAD_BACKEND = {
# 'name': 'native',
#}

# Set this to True if running on multi-domain model. When this is enabled, it
# will require user to enter the Domain name in addition to username for login.
# OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = False
Expand Down
2 changes: 2 additions & 0 deletions wildcard/test/settings.py
Expand Up @@ -86,6 +86,8 @@
'can_edit_role': True
}

KICKSTAND_PAYLOAD_BACKEND = True

LOGGING['loggers']['wildcard'] = {
'handlers': ['test'],
'propagate': False,
Expand Down

0 comments on commit c46e1e9

Please sign in to comment.