Fix wrong setting name for SHOW_KEYSTONE_V2_RC

The user links patch didn't use the same setting
variable name in context_processors.py, this fixes
that.

Closes-Bug: #1757112

Change-Id: Ie0e516d82c2c1cdc1c343075393cdf9c336f8e5f
This commit is contained in:
Adrian Turjak 2018-03-20 17:55:52 +13:00
parent c5c680cb69
commit f588b4ee2e

View File

@ -88,7 +88,7 @@ def openstack(request):
user_menu_links = getattr(settings, "USER_MENU_LINKS", [])
if not getattr(settings, "SHOW_V2_KEYSTONE_RC", True):
if not getattr(settings, "SHOW_KEYSTONE_V2_RC", True):
user_menu_links = [
link for link in user_menu_links
if 'horizon:project:api_access:openrcv2' != link['url']]