Fix for Distributed Cloud server groups panel

Disable server groups panel in sidebar when region is RegionOne.

Change-Id: I2e7ebfee0c7ccc40b8bb028d5eb9ea27fd1aa368
Closes-Bug: 1801224
This commit is contained in:
gaozx 2018-11-02 14:47:06 +08:00
parent 7f34d9cbca
commit ef157ff4ff
1 changed files with 2 additions and 2 deletions

View File

@ -30,13 +30,13 @@ class ServerGroups(horizon.Panel):
permissions = ('openstack.services.platform',)
def allowed(self, context):
if not base.is_service_enabled(context['request'], 'platform'):
if not base.is_service_enabled(context['request'], 'compute'):
return False
else:
return super(ServerGroups, self).allowed(context)
def nav(self, context):
if not base.is_service_enabled(context['request'], 'platform'):
if not base.is_service_enabled(context['request'], 'compute'):
return False
else:
return True