Skip to content

Commit

Permalink
Support one level of nested dicts in kolla_globals
Browse files Browse the repository at this point in the history
Change-Id: I442a4d8be63000837c130df0573433967c2cddde
Closes-Bug: #1783146
  • Loading branch information
ramprackash committed Jul 23, 2018
1 parent 8979453 commit d5535df
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions playbooks/roles/create_openstack_config/templates/globals.yml.j2
Expand Up @@ -4,6 +4,16 @@
# 'kolla-ansible/ansible/group_vars/all.yml' file.

{% for key, value in final_kolla_globals.iteritems() %}
{% if value is mapping %}
{% print '\n' %}
{{ key }}:
{% for k, v in value.iteritems() %}
{{ k }}: {{ v }}
{% endfor %}
{% print '\n' %}
{% else %}
{{ key }}: {{ value }}
{% endif %}
{% endfor %}


0 comments on commit d5535df

Please sign in to comment.