Verify is public_ssl_attr take place in cluster

To get possibility works with 6.1 environments
from master branch, lets check if cluster has attribute
'public_ssl' and if it has, only then try to operate with it

Change-Id: I700dab442b2f25e49282d7350de74ff3bde5da54
Related: bp ssl-endpoints
This commit is contained in:
Tatyana Leontovich
2015-08-04 15:55:26 +03:00
committed by tatyana-leontovich
parent 096edf9bbd
commit ed14dbe779

View File

@@ -432,7 +432,8 @@ class FuelWebClient(object):
if section:
attributes['editable'][section][option]['value'] =\
settings[option]
if help_data.DISABLE_SSL:
is_ssl_available = attributes['editable'].get('public_ssl', None)
if help_data.DISABLE_SSL and is_ssl_available:
attributes['editable']['public_ssl']['services'][
'value'] = False
attributes['editable']['public_ssl']['horizon'][