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:
parent
7f34d9cbca
commit
ef157ff4ff
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue