Don't show the EC2 Credentials panel if there is no EC2 service

Fixes bug #1102411

Change-Id: I2454b415ac99f19349f4a19a1358fc75d8307fba
This commit is contained in:
Julie Pichon 2013-01-21 14:47:16 +00:00
parent 13c4a320a5
commit 20fa0fcaa5
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ from horizon.dashboards.settings import dashboard
class EC2Panel(horizon.Panel):
name = _("EC2 Credentials")
slug = 'ec2'
permissions = ('openstack.services.ec2',)
dashboard.Settings.register(EC2Panel)