commit | 12b1d09515cd0c578823b90f1aa908d041d61e26 | [log] [tgz] |
---|---|---|
author | Oleksii Chupryn <achuprin@mirantis.com> | Thu Mar 30 14:55:13 2017 +0300 |
committer | Oleksii Chupryn <achuprin@mirantis.com> | Thu Mar 30 14:58:29 2017 +0300 |
tree | 99c2743b861392f86353564adcbd425eb3584395 | |
parent | 46032ed2d8cce24e4d5550055e586c2146c7c188 [diff] |
Fix logic for OPENSTACK_HEAT_STACK param according documentation https://docs.openstack.org/developer/horizon/topics/settings.html#openstack-heat-stack Change-Id: I07c84a3a958b02dbe8d92faec21bbfbf71ce59b6
diff --git a/horizon/files/horizon_settings/_heat_settings.py b/horizon/files/horizon_settings/_heat_settings.py index 7f168c3..acb4a71 100644 --- a/horizon/files/horizon_settings/_heat_settings.py +++ b/horizon/files/horizon_settings/_heat_settings.py
@@ -6,6 +6,6 @@ {%- set app = server %} {%- endif %} -{%- if app.get('openstack_heat_stack', false) %} -OPENSTACK_HEAT_STACK = {'enable_user_pass': True} +{% if app.openstack_heat_stack is defined %} +OPENSTACK_HEAT_STACK = {'enable_user_pass': {% if app.openstack_heat_stack %}True{% else %}False{% endif %}} {%- endif %}